mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
Check the value of the pfnCallback in addition to the callback bit.
This commit is contained in:
parent
a4ed7eda9a
commit
5e36ae56b2
@ -287,7 +287,7 @@ static BOOL PROPSHEET_CollectSheetInfoA(LPCPROPSHEETHEADERA lppsh,
|
||||
|
||||
psInfo->hasHelp = dwFlags & PSH_HASHELP;
|
||||
psInfo->hasApply = !(dwFlags & PSH_NOAPPLYNOW);
|
||||
psInfo->useCallback = dwFlags & PSH_USECALLBACK;
|
||||
psInfo->useCallback = (dwFlags & PSH_USECALLBACK )&& (lppsh->pfnCallback);
|
||||
psInfo->isModeless = dwFlags & PSH_MODELESS;
|
||||
|
||||
memcpy(&psInfo->ppshheader,lppsh,dwSize);
|
||||
@ -338,7 +338,7 @@ static BOOL PROPSHEET_CollectSheetInfoW(LPCPROPSHEETHEADERW lppsh,
|
||||
|
||||
psInfo->hasHelp = dwFlags & PSH_HASHELP;
|
||||
psInfo->hasApply = !(dwFlags & PSH_NOAPPLYNOW);
|
||||
psInfo->useCallback = dwFlags & PSH_USECALLBACK;
|
||||
psInfo->useCallback = (dwFlags & PSH_USECALLBACK) && (lppsh->pfnCallback);
|
||||
psInfo->isModeless = dwFlags & PSH_MODELESS;
|
||||
|
||||
memcpy(&psInfo->ppshheader,lppsh,dwSize);
|
||||
|
Loading…
Reference in New Issue
Block a user