Fix potential issues in control panel.

This commit is contained in:
qianlifeng
2014-07-19 08:15:51 +08:00
parent 6d8244ba5c
commit f1697313c0
3 changed files with 15 additions and 5 deletions

View File

@@ -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)