From 69ddd4e74b80038cbc72727d10cecd617c63bdbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petru=20R=C4=83zvan?= Date: Sun, 26 Oct 2025 19:53:59 +0200 Subject: [PATCH] [WINESYNC][COMCTL32] Fix Exception in PROPSHEET_DoCommand (#7943) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CORE-20036 Import Wine commit: comctl32: Avoid segfault in PROPSHEET_DoCommand when psInfo is NULL. wine commit id affd5177bba907a015d1c6fc8ac9970731125268 by Yuri Hérouard --- dll/win32/comctl32/propsheet.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dll/win32/comctl32/propsheet.c b/dll/win32/comctl32/propsheet.c index 7f1dbdcc4a8..0bfa0c64943 100644 --- a/dll/win32/comctl32/propsheet.c +++ b/dll/win32/comctl32/propsheet.c @@ -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;