SystemName == NULL is valid for LsaOpenPolicy

svn path=/trunk/; revision=39257
This commit is contained in:
Christoph von Wittich 2009-02-01 05:51:07 +00:00
parent 9b57ce8177
commit 2c235c6653

View file

@ -388,14 +388,14 @@ LsaOpenPolicy(
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);