mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 19:46:07 +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;
|
||||
size = sizeof(WINHELP) + nlen + dsize;
|
||||
hwh = GlobalAlloc(0,size);
|
||||
if (hwh == NULL)
|
||||
return FALSE;
|
||||
lpwh = GlobalLock(hwh);
|
||||
lpwh->size = size;
|
||||
lpwh->command = uCommand;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue