Check PROPSHEETPAGEA.pfnCallback for NULL pointer if PSP_USECALLBACK

is given.
This commit is contained in:
Andreas Mohr 2001-02-12 18:08:31 +00:00 committed by Alexandre Julliard
parent 2ad985527f
commit 9f05b8229f
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ BOOL PROPSHEET_CollectPageInfo(LPCPROPSHEETPAGEA lppsp,
* Process property page flags.
*/
dwFlags = lppsp->dwFlags;
psInfo->proppage[index].useCallback = dwFlags & PSP_USECALLBACK;
psInfo->proppage[index].useCallback = (dwFlags & PSP_USECALLBACK) && (lppsp->pfnCallback);
psInfo->proppage[index].hasHelp = dwFlags & PSP_HASHELP;
psInfo->proppage[index].hasIcon = dwFlags & (PSP_USEHICON | PSP_USEICONID);