mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 07:46:29 +00:00
Check for failed allocations. Spotted by Martin Bealby.
svn path=/trunk/; revision=20118
This commit is contained in:
parent
f59f8f34e3
commit
d85330a92a
1 changed files with 2 additions and 0 deletions
|
@ -107,6 +107,8 @@ WinHelpA(HWND hWnd, LPCSTR lpszHelp, UINT uCommand, DWORD dwData)
|
||||||
nlen = 0;
|
nlen = 0;
|
||||||
size = sizeof(WINHELP) + nlen + dsize;
|
size = sizeof(WINHELP) + nlen + dsize;
|
||||||
hwh = GlobalAlloc(0,size);
|
hwh = GlobalAlloc(0,size);
|
||||||
|
if (hwh == NULL)
|
||||||
|
return FALSE;
|
||||||
lpwh = GlobalLock(hwh);
|
lpwh = GlobalLock(hwh);
|
||||||
lpwh->size = size;
|
lpwh->size = size;
|
||||||
lpwh->command = uCommand;
|
lpwh->command = uCommand;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue