mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:13:56 +00:00
Check the value of the pfnCallback in addition to the callback bit.
This commit is contained in:
parent
a4ed7eda9a
commit
5e36ae56b2
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue