COMCTL32: Fix InitCommonControlsEx prototype (resend)

Thomas Weidenmueller wine-patches at reactsoft.com
Fri Jan 19 06:40:04 CST 2007


InitCommonControlsEx should use a pointer to constant data.

- Thomas
-------------- next part --------------
Index: dlls/comctl32/commctrl.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/commctrl.c,v
retrieving revision 1.102
diff -u -r1.102 commctrl.c
--- dlls/comctl32/commctrl.c	25 Oct 2006 18:31:19 -0000	1.102
+++ dlls/comctl32/commctrl.c	19 Jan 2007 12:37:19 -0000
@@ -627,7 +627,7 @@
  */
 
 BOOL WINAPI
-InitCommonControlsEx (LPINITCOMMONCONTROLSEX lpInitCtrls)
+InitCommonControlsEx (const INITCOMMONCONTROLSEX *lpInitCtrls)
 {
     INT cCount;
     DWORD dwMask;
Index: include/commctrl.h
===================================================================
RCS file: /home/wine/wine/include/commctrl.h,v
retrieving revision 1.165
diff -u -r1.165 commctrl.h
--- include/commctrl.h	9 Jan 2007 12:11:36 -0000	1.165
+++ include/commctrl.h	19 Jan 2007 00:31:53 -0000
@@ -36,7 +36,7 @@
     DWORD dwICC;
 } INITCOMMONCONTROLSEX, *LPINITCOMMONCONTROLSEX;
 
-BOOL WINAPI InitCommonControlsEx (LPINITCOMMONCONTROLSEX);
+BOOL WINAPI InitCommonControlsEx (const INITCOMMONCONTROLSEX*);
 
 LANGID WINAPI GetMUILanguage (VOID);
 VOID WINAPI InitMUILanguage (LANGID uiLang);


More information about the wine-patches mailing list