Alexandre Julliard : user32: Don' t make constants static to avoid compile error without optimization.

Alexandre Julliard julliard at winehq.org
Mon Jul 26 13:22:27 CDT 2010


Module: wine
Branch: master
Commit: bde57f0e6412742884994181653ebc43852c7641
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=bde57f0e6412742884994181653ebc43852c7641

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Sat Jul 24 11:17:05 2010 +0200

user32: Don't make constants static to avoid compile error without optimization.

---

 dlls/user32/painting.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/user32/painting.c b/dlls/user32/painting.c
index 5e57e7f..cd096cd 100644
--- a/dlls/user32/painting.c
+++ b/dlls/user32/painting.c
@@ -909,8 +909,8 @@ 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 */
+    const DWORD clip_flags = DCX_PARENTCLIP | DCX_CLIPSIBLINGS | DCX_CLIPCHILDREN | DCX_WINDOW;
+    const DWORD user_flags = clip_flags | DCX_NORESETATTRS; /* flags that can be set by user */
     struct dce *dce;
     BOOL bUpdateVisRgn = TRUE;
     HWND parent;




More information about the wine-cvs mailing list