mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Guard IsWinPEHost
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user