Skip to content

Commit 69ddd4e

Browse files
authored
[WINESYNC][COMCTL32] Fix Exception in PROPSHEET_DoCommand (reactos#7943)
CORE-20036 Import Wine commit: comctl32: Avoid segfault in PROPSHEET_DoCommand when psInfo is NULL. wine commit id affd5177bba907a015d1c6fc8ac9970731125268 by Yuri Hérouard <[email protected]>
1 parent df49026 commit 69ddd4e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dll/win32/comctl32/propsheet.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3255,6 +3255,10 @@ static BOOL PROPSHEET_DoCommand(HWND hwnd, WORD wID)
32553255
{
32563256
PropSheetInfo* psInfo = GetPropW(hwnd, PropSheetInfoStr);
32573257

3258+
#ifdef __REACTOS__
3259+
if (psInfo == NULL) break;
3260+
#endif
3261+
32583262
/* don't overwrite ID_PSRESTARTWINDOWS or ID_PSREBOOTSYSTEM */
32593263
if (psInfo->result == 0)
32603264
psInfo->result = IDOK;

0 commit comments

Comments
 (0)