mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 23:33:24 +08:00
[WINESYNC][COMCTL32] Fix Exception in PROPSHEET_DoCommand (#7943)
CORE-20036 Import Wine commit: comctl32: Avoid segfault in PROPSHEET_DoCommand when psInfo is NULL. wine commit id affd5177bba907a015d1c6fc8ac9970731125268 by Yuri Hérouard <yuri.herouard@gmail.com>
This commit is contained in:
@@ -3255,6 +3255,10 @@ static BOOL PROPSHEET_DoCommand(HWND hwnd, WORD wID)
|
||||
{
|
||||
PropSheetInfo* psInfo = GetPropW(hwnd, PropSheetInfoStr);
|
||||
|
||||
#ifdef __REACTOS__
|
||||
if (psInfo == NULL) break;
|
||||
#endif
|
||||
|
||||
/* don't overwrite ID_PSRESTARTWINDOWS or ID_PSREBOOTSYSTEM */
|
||||
if (psInfo->result == 0)
|
||||
psInfo->result = IDOK;
|
||||
|
||||
Reference in New Issue
Block a user