projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
f59f8f3
)
Check for failed allocations. Spotted by Martin Bealby.
author
Filip Navara
<filip.navara@gmail.com>
Mon, 12 Dec 2005 20:49:35 +0000
(20:49 +0000)
committer
Filip Navara
<filip.navara@gmail.com>
Mon, 12 Dec 2005 20:49:35 +0000
(20:49 +0000)
svn path=/trunk/; revision=20118
reactos/lib/user32/misc/winhelp.c
patch
|
blob
|
history
diff --git
a/reactos/lib/user32/misc/winhelp.c
b/reactos/lib/user32/misc/winhelp.c
index
3a8c553
..
8abf11b
100644
(file)
--- a/
reactos/lib/user32/misc/winhelp.c
+++ b/
reactos/lib/user32/misc/winhelp.c
@@
-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;