It should be allowed to pass NULL handles in the phpage array of the

PROPSHEETHEADER structure to PropertySheet(), just ignore them.
This commit is contained in:
Thomas Weidenmueller 2005-08-27 09:59:09 +00:00 committed by Alexandre Julliard
parent 42eff0f92b
commit c9b7442689
1 changed files with 3 additions and 0 deletions

View File

@ -452,6 +452,9 @@ BOOL PROPSHEET_CollectPageInfo(LPCPROPSHEETPAGEW lppsp,
DWORD dwFlags;
int width, height;
if (!lppsp)
return FALSE;
TRACE("\n");
psInfo->proppage[index].hpage = (HPROPSHEETPAGE)lppsp;
psInfo->proppage[index].hwndPage = 0;