[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:
Petru Răzvan
2025-10-26 19:53:59 +02:00
committed by GitHub
parent df49026976
commit 69ddd4e74b

View File

@@ -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;