Author: tfaber
Date: Mon Oct 13 09:18:46 2014
New Revision: 64705
URL:
http://svn.reactos.org/svn/reactos?rev=64705&view=rev
Log:
[USER32]
- Correctly treat lpnLengthNeeded as optional in GetUserObjectInformationA. Fixes crash in
user32_winetest:winstation
CORE-8101 #resolve
Modified:
trunk/reactos/win32ss/user/user32/misc/object.c
Modified: trunk/reactos/win32ss/user/user32/misc/object.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/misc/o…
==============================================================================
--- trunk/reactos/win32ss/user/user32/misc/object.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/misc/object.c [iso-8859-1] Mon Oct 13 09:18:46 2014
@@ -73,7 +73,8 @@
if (LengthNeeded != 0)
{
- *lpnLengthNeeded = LengthNeeded;
+ if (lpnLengthNeeded)
+ *lpnLengthNeeded = LengthNeeded;
ret = TRUE;
}
}