mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 11:16:51 +02:00
Fix potential issues in control panel.
This commit is contained in:
@@ -298,7 +298,12 @@ namespace Wox.Plugin.SystemPlugins.ControlPanel
|
||||
args = args.Remove(x);
|
||||
}
|
||||
|
||||
return Convert.ToUInt32(args);
|
||||
uint size;
|
||||
if (uint.TryParse(args, out size))
|
||||
{
|
||||
return size;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
private static bool IS_INTRESOURCE(IntPtr value)
|
||||
|
||||
Reference in New Issue
Block a user