comctl32: Allow NULL handles in the phpage array

Thomas Weidenmueller wine-patches at reactsoft.com
Fri Aug 26 17:48:24 CDT 2005


It should be allowed to pass NULL handles in the phpage array of the
PROPSHEETHEADER structure to PropertySheet(), just ignore them.
-------------- next part --------------
Index: dlls/comctl32/propsheet.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/propsheet.c,v
retrieving revision 1.133
diff -u -r1.133 propsheet.c
--- dlls/comctl32/propsheet.c	18 Jul 2005 10:31:06 -0000	1.133
+++ dlls/comctl32/propsheet.c	26 Aug 2005 22:44:16 -0000
@@ -452,6 +452,9 @@
   DWORD dwFlags;
   int width, height;
 
+  if (!lppsp)
+    return FALSE;
+
   TRACE("\n");
   psInfo->proppage[index].hpage = (HPROPSHEETPAGE)lppsp;
   psInfo->proppage[index].hwndPage = 0;


More information about the wine-patches mailing list