mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
simplify virtualization message
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@401 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
@@ -99,19 +99,13 @@ namespace ProcessHacker
|
||||
{
|
||||
bool virtAllowed = token.IsVirtualizationAllowed();
|
||||
bool virtEnabled = token.IsVirtualizationEnabled();
|
||||
string virtText;
|
||||
|
||||
if (virtAllowed)
|
||||
virtText = "Virtualization is allowed ";
|
||||
else
|
||||
virtText = "Virtualization is not allowed.";
|
||||
|
||||
if (virtEnabled)
|
||||
virtText += "and enabled.";
|
||||
textVirtualized.Text = "Enabled";
|
||||
else if (virtAllowed)
|
||||
virtText += "but disabled.";
|
||||
|
||||
textVirtualized.Text = virtText;
|
||||
textVirtualized.Text = "Disabled";
|
||||
else
|
||||
textVirtualized.Text = "Not Allowed";
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user