Skip to content
Permalink
Browse files

Merge pull request #15 from irsdl/irsdl-patch-issue-14

Update COMIELowRightsElevationPolicy.cs
  • Loading branch information...
tyranid committed Sep 3, 2019
2 parents e2f1897 + ed9a314 commit e9ee0a9adcfc5f91f0f8a640e8c55c2f07aa037d
Showing with 2 additions and 2 deletions.
  1. +2 −2 OleViewDotNet.Main/Database/COMIELowRightsElevationPolicy.cs
@@ -95,9 +95,9 @@ private void LoadFromRegistry(RegistryKey key)

object policyValue = key.GetValue("Policy", 0);

if (policyValue != null)
if (policyValue != null && !String.IsNullOrEmpty(policyValue.ToString()))
{
Policy = (IEElevationPolicy)Enum.ToObject(typeof(IEElevationPolicy), key.GetValue("Policy", 0));
Policy = (IEElevationPolicy)Enum.ToObject(typeof(IEElevationPolicy), policyValue);
}

string clsid = (string)key.GetValue("CLSID");

0 comments on commit e9ee0a9

Please sign in to comment.
You can’t perform that action at this time.