Author: ekohl
Date: Sat Dec 29 12:55:05 2012
New Revision: 58037
URL:
http://svn.reactos.org/svn/reactos?rev=58037&view=rev
Log:
[SAMSRV]
Fix two incorrect failure checks in the object database code.
Modified:
trunk/reactos/dll/win32/samsrv/database.c
Modified: trunk/reactos/dll/win32/samsrv/database.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/samsrv/database.…
==============================================================================
--- trunk/reactos/dll/win32/samsrv/database.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/samsrv/database.c [iso-8859-1] Sat Dec 29 12:55:05 2012
@@ -223,7 +223,7 @@
NewObject->Name = RtlAllocateHeap(RtlGetProcessHeap(),
0,
(wcslen(ObjectName) + 1) * sizeof(WCHAR));
- if (NewObject == NULL)
+ if (NewObject->Name == NULL)
{
if (MembersKeyHandle != NULL)
NtClose(MembersKeyHandle);
@@ -374,7 +374,7 @@
NewObject->Name = RtlAllocateHeap(RtlGetProcessHeap(),
0,
(wcslen(ObjectName) + 1) * sizeof(WCHAR));
- if (NewObject == NULL)
+ if (NewObject->Name == NULL)
{
if (MembersKeyHandle != NULL)
NtClose(MembersKeyHandle);