mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
don't free a UNICODE_STRING which isn't allocated
svn path=/trunk/; revision=34098
This commit is contained in:
parent
eec2739a8b
commit
4bcfbf7b99
1 changed files with 2 additions and 1 deletions
|
@ -931,7 +931,8 @@ NtUserCreateDesktop(
|
|||
{
|
||||
SetLastNtError(STATUS_INSUFFICIENT_RESOURCES);
|
||||
ObDereferenceObject(WinStaObject);
|
||||
RtlFreeUnicodeString(&SafeDesktopName);
|
||||
if (lpszDesktopName)
|
||||
RtlFreeUnicodeString(&SafeDesktopName);
|
||||
RETURN( NULL);
|
||||
}
|
||||
RtlFreeUnicodeString(&SafeDesktopName);
|
||||
|
|
Loading…
Reference in a new issue