https://git.reactos.org/?p=reactos.git;a=commitdiff;h=8dcdf82e71c3b032617251...
commit 8dcdf82e71c3b032617251ab0ec2024b7f4f820a Author: Thomas Faber thomas.faber@reactos.org AuthorDate: Sun Feb 3 16:55:04 2019 +0100 Commit: Thomas Faber thomas.faber@reactos.org CommitDate: Sun Feb 17 09:51:18 2019 +0100
[COMCTL32] Check for NULL pointer when handling BCM_GETIDEALSIZE.
Fixes crash in comctl32_winetest:button. --- dll/win32/comctl32/button.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/dll/win32/comctl32/button.c b/dll/win32/comctl32/button.c index 59067471f1..1d7431d0b1 100644 --- a/dll/win32/comctl32/button.c +++ b/dll/win32/comctl32/button.c @@ -941,6 +941,11 @@ static LRESULT CALLBACK BUTTON_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, L BOOL ret = FALSE; SIZE* pSize = (SIZE*)lParam;
+ if (!pSize) + { + return FALSE; + } + if (btn_type == BS_PUSHBUTTON || btn_type == BS_DEFPUSHBUTTON || btn_type == BS_USERBUTTON)