Author: jimtabor
Date: Tue Dec 9 14:28:26 2008
New Revision: 37983
URL:
http://svn.reactos.org/svn/reactos?rev=37983&view=rev
Log:
- Make sure SecurityDescriptor is not NULL.
Modified:
trunk/reactos/dll/win32/advapi32/sec/sid.c
Modified: trunk/reactos/dll/win32/advapi32/sec/sid.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/sec/sid…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/sec/sid.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/sec/sid.c [iso-8859-1] Tue Dec 9 14:28:26 2008
@@ -1132,7 +1132,7 @@
PSECURITY_DESCRIPTOR sd = NULL;
BOOL ret = FALSE;
- if (!StringSecurityDescriptor)
+ if (!StringSecurityDescriptor || !SecurityDescriptor)
SetLastError(ERROR_INVALID_PARAMETER);
else if (StringSDRevision != SDDL_REVISION_1)
SetLastError(ERROR_INVALID_PARAMETER);