Guard IsWinPEHost

This commit is contained in:
Andrew Schwartzmeyer
2016-07-14 17:34:12 -07:00
parent 89508ae99d
commit ad94ddb3f1
@@ -359,6 +359,7 @@ namespace System.Management.Automation
/// </summary>
internal static bool IsWinPEHost()
{
#if !LINUX
RegistryKey winPEKey = null;
try
@@ -379,7 +380,7 @@ namespace System.Management.Automation
winPEKey.Dispose();
}
}
#endif
return false;
}