Memory allocation bug in dlls/comctl32/propsheet.c

kenon at go2.pl kenon at go2.pl
Mon May 27 11:41:38 CDT 2002


Changelog:
  Fixed memory allocation bug in PROPSHEET_CollectPageInfo
 
Maciek Kaliszewski
-------------- next part --------------
--- wine/dlls/comctl32/propsheet.c~	Sun May 26 23:55:33 2002
+++ wine/dlls/comctl32/propsheet.c	Mon May 27 16:22:11 2002
@@ -483,7 +483,7 @@
     else
       pTitle = lppsp->pszTitle;
 
-    len = strlenW(szTitle);
+    len = strlenW(pTitle);
     psInfo->proppage[index].pszText = COMCTL32_Alloc( (len+1)*sizeof (WCHAR) );
     strcpyW( (LPWSTR)psInfo->proppage[index].pszText,pTitle);
   }


More information about the wine-patches mailing list