Skip to content
Permalink
Browse files

Update COMIELowRightsElevationPolicy.cs

To resolve an error in 32b version
  • Loading branch information...
irsdl committed Sep 3, 2019
1 parent e2f1897 commit ed9a314f91bbb56f6cb49d9e34348f788bb97f7e
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 ed9a314

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