Here is my patch to get it compiling even with -O0 (and what does have optimization to do with errors?): Code: diff --git a/dlls/user32/painting.c b/dlls/user32/painting.c index 5e57e7f..320a920 100644 --- a/dlls/user32/painting.c +++ b/dlls/user32/painting.c @@ -910,7 +910,7 @@ BOOL WINAPI EndPaint( HWND hwnd, const PAINTSTRUCT *lps ) HDC WINAPI GetDCEx( HWND hwnd, HRGN hrgnClip, DWORD flags ) { static const DWORD clip_flags = DCX_PARENTCLIP | DCX_CLIPSIBLINGS | DCX_CLIPCHILDREN | DCX_WINDOW; - static const DWORD user_flags = clip_flags | DCX_NORESETATTRS; /* flags that can be set by user */ + static const DWORD user_flags = DCX_PARENTCLIP | DCX_CLIPSIBLINGS | DCX_CLIPCHILDREN | DCX_WINDOW | DCX_NORESETATTRS; /* f struct dce *dce; BOOL bUpdateVisRgn = TRUE; HWND parent;