Check PROPSHEETPAGEA.pfnCallback for NULL pointer if PSP_USECALLBACK
is given.
This commit is contained in:
parent
2ad985527f
commit
9f05b8229f
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue