diff --git a/phlib/secedit.c b/phlib/secedit.c index 72716f47299e..5d8baf8da029 100644 --- a/phlib/secedit.c +++ b/phlib/secedit.c @@ -254,7 +254,7 @@ ISecurityInformation *PhSecurityInformation_Create( info->RefCount = 1; info->WindowHandle = WindowHandle; - info->ObjectName = PhCreateString(ObjectName); + info->ObjectName = ObjectName ? PhCreateString(ObjectName) : PhReferenceEmptyString(); info->ObjectType = PhCreateString(ObjectType); info->ObjectTypeMask = PhSecurityObjectType(info->ObjectType); info->OpenObject = OpenObject;