projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
408fa48
)
Check for failed allocation in GetNamedPipeHandleStateA.
author
Filip Navara
<filip.navara@gmail.com>
Sun, 11 Dec 2005 22:36:20 +0000
(22:36 +0000)
committer
Filip Navara
<filip.navara@gmail.com>
Sun, 11 Dec 2005 22:36:20 +0000
(22:36 +0000)
svn path=/trunk/; revision=20089
reactos/lib/kernel32/file/npipe.c
patch
|
blob
|
history
diff --git
a/reactos/lib/kernel32/file/npipe.c
b/reactos/lib/kernel32/file/npipe.c
index
a9fcd27
..
decc1bc
100644
(file)
--- a/
reactos/lib/kernel32/file/npipe.c
+++ b/
reactos/lib/kernel32/file/npipe.c
@@
-924,6
+924,11
@@
GetNamedPipeHandleStateA(HANDLE hNamedPipe,
SetLastError(ERROR_NOT_ENOUGH_MEMORY);
return FALSE;
}
+ if (UserNameW.Buffer == NULL)
+ {
+ SetLastError(ERROR_NOT_ENOUGH_MEMORY);
+ return FALSE;
+ }
UserNameA.Buffer = lpUserName;
UserNameA.Length = 0;