Commit 16baace6 authored by François Gouget's avatar François Gouget Committed by Alexandre Julliard

Only copy the dwSize bytes really occupied by lpPropSheetPage.

parent 8582b287
......@@ -1966,7 +1966,7 @@ HPROPSHEETPAGE WINAPI CreatePropertySheetPageA(
{
PROPSHEETPAGEA* ppsp = COMCTL32_Alloc(sizeof(PROPSHEETPAGEA));
*ppsp = *lpPropSheetPage;
memcpy(ppsp,lpPropSheetPage,min(lpPropSheetPage->dwSize,sizeof(PROPSHEETPAGEA)));
if ( !(ppsp->dwFlags & PSP_DLGINDIRECT) && HIWORD( ppsp->u.pszTemplate ) )
ppsp->u.pszTemplate = HEAP_strdupA( GetProcessHeap(), 0, lpPropSheetPage->u.pszTemplate );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment