Revert r20089, thanks SVN for not a nice conflict resolution!
authorFilip Navara <filip.navara@gmail.com>
Sun, 11 Dec 2005 22:40:15 +0000 (22:40 +0000)
committerFilip Navara <filip.navara@gmail.com>
Sun, 11 Dec 2005 22:40:15 +0000 (22:40 +0000)
svn path=/trunk/; revision=20090

reactos/lib/kernel32/file/npipe.c

index decc1bc..a9fcd27 100644 (file)
@@ -924,11 +924,6 @@ GetNamedPipeHandleStateA(HANDLE hNamedPipe,
       SetLastError(ERROR_NOT_ENOUGH_MEMORY);
       return FALSE;
     }
       SetLastError(ERROR_NOT_ENOUGH_MEMORY);
       return FALSE;
     }
-    if (UserNameW.Buffer == NULL)
-    {
-      SetLastError(ERROR_NOT_ENOUGH_MEMORY);
-      return FALSE;
-    }
 
     UserNameA.Buffer = lpUserName;
     UserNameA.Length = 0;
 
     UserNameA.Buffer = lpUserName;
     UserNameA.Length = 0;