[USER32]
authorThomas Faber <thomas.faber@reactos.org>
Mon, 13 Oct 2014 09:18:46 +0000 (09:18 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Mon, 13 Oct 2014 09:18:46 +0000 (09:18 +0000)
- Correctly treat lpnLengthNeeded as optional in GetUserObjectInformationA. Fixes crash in user32_winetest:winstation
CORE-8101 #resolve

svn path=/trunk/; revision=64705

reactos/win32ss/user/user32/misc/object.c

index d85e676..324ae45 100644 (file)
@@ -73,7 +73,8 @@ GetUserObjectInformationA(
 
     if (LengthNeeded != 0)
     {
 
     if (LengthNeeded != 0)
     {
-        *lpnLengthNeeded = LengthNeeded;
+        if (lpnLengthNeeded)
+            *lpnLengthNeeded = LengthNeeded;
         ret = TRUE;
     }
   }
         ret = TRUE;
     }
   }