Author: pschweitzer
Date: Sun Apr  6 15:11:09 2014
New Revision: 62658

URL: http://svn.reactos.org/svn/reactos?rev=62658&view=rev
Log:
[LSASRV]
Fix broken if statements

CID #513328
CID #1102024

Modified:
    trunk/reactos/dll/win32/lsasrv/privileges.c

Modified: trunk/reactos/dll/win32/lsasrv/privileges.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/lsasrv/privileges.c?rev=62658&r1=62657&r2=62658&view=diff
==============================================================================
--- trunk/reactos/dll/win32/lsasrv/privileges.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/lsasrv/privileges.c [iso-8859-1] Sun Apr  6 
15:11:09 2014
@@ -101,7 +101,7 @@
             NameBuffer->MaximumLength = NameBuffer->Length + sizeof(WCHAR);
 
             NameBuffer->Buffer = MIDL_user_allocate(NameBuffer->MaximumLength);
-            if (NameBuffer == NULL)
+            if (NameBuffer->Buffer == NULL)
             {
                 MIDL_user_free(NameBuffer);
                 return STATUS_NO_MEMORY;
@@ -257,7 +257,7 @@
             NameBuffer->MaximumLength = NameBuffer->Length + sizeof(WCHAR);
 
             NameBuffer->Buffer = MIDL_user_allocate(NameBuffer->MaximumLength);
-            if (NameBuffer == NULL)
+            if (NameBuffer->Buffer == NULL)
             {
                 MIDL_user_free(NameBuffer);
                 return STATUS_INSUFFICIENT_RESOURCES;


Reply via email to