Author: cwittich
Date: Sat Jan 31 23:51:07 2009
New Revision: 39257
URL:
http://svn.reactos.org/svn/reactos?rev=39257&view=rev
Log:
SystemName == NULL is valid for LsaOpenPolicy
Modified:
trunk/reactos/dll/win32/advapi32/sec/lsa.c
Modified: trunk/reactos/dll/win32/advapi32/sec/lsa.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/sec/lsa…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/sec/lsa.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/sec/lsa.c [iso-8859-1] Sat Jan 31 23:51:07 2009
@@ -388,14 +388,14 @@
NTSTATUS Status;
TRACE("LsaOpenPolicy (%s,%p,0x%08x,%p)\n",
- SystemName?debugstr_w(SystemName->Buffer):"(null)",
+ SystemName ? debugstr_w(SystemName->Buffer) : "(null)",
ObjectAttributes, DesiredAccess, PolicyHandle);
RpcTryExcept
{
*PolicyHandle = NULL;
- Status = LsarOpenPolicy(SystemName->Buffer,
+ Status = LsarOpenPolicy(SystemName ? SystemName->Buffer : NULL,
(PLSAPR_OBJECT_ATTRIBUTES)ObjectAttributes,
DesiredAccess,
PolicyHandle);