mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 18:45:46 +00:00
Check for failed allocation in GetNamedPipeHandleStateA.
svn path=/trunk/; revision=20089
This commit is contained in:
parent
408fa486e3
commit
d97f75d5ed
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue