From: YuriK7 riyu12383@gmail.com
--- dlls/comctl32/propsheet.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/dlls/comctl32/propsheet.c b/dlls/comctl32/propsheet.c index 44b24a56a07..d397f85870d 100644 --- a/dlls/comctl32/propsheet.c +++ b/dlls/comctl32/propsheet.c @@ -3326,6 +3326,8 @@ static BOOL PROPSHEET_DoCommand(HWND hwnd, WORD wID) { PropSheetInfo* psInfo = GetPropW(hwnd, PropSheetInfoStr);
+ if (psInfo == NULL) break; + /* don't overwrite ID_PSRESTARTWINDOWS or ID_PSREBOOTSYSTEM */ if (psInfo->result == 0) psInfo->result = IDOK;
I comment on the bug report, but also mentioning here. It would be interesting to know why it's NULL.
I think it's a reasonable change. One remaining issue though - please force push with your full name in the patch author field, currently it says YuriK7, which I'm assuming is not the full name.