mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[COMCTL32] Check for NULL pointer when handling BCM_GETIDEALSIZE.
Fixes crash in comctl32_winetest:button.
This commit is contained in:
parent
3445129dd3
commit
8dcdf82e71
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue