I did a git pull then patch -p1 < ../WineTests/advccfg.diff And I got: patching file programs/winecfg/En.rc patching file programs/winecfg/resource.h patching file programs/winecfg/x11drvdlg.c patch unexpectedly ends in middle of line Hunk #6 succeeded at 635 with fuzz 1. I'm downloading the patch from the forum and it looks indeed broken (I'm not familiar with patch format). At the end of the patch I have: - case WM_NOTIFY: switch (((LPNMHDR)lParam)->code) { case PSN_KILLACTIVE: {