diff --git a/tools/GSDumpGUI/Library/GSDXWrapper.cs b/tools/GSDumpGUI/Library/GSDXWrapper.cs index fc0c9df47681e..eaaca9cce8fc7 100644 --- a/tools/GSDumpGUI/Library/GSDXWrapper.cs +++ b/tools/GSDumpGUI/Library/GSDXWrapper.cs @@ -215,7 +215,7 @@ public unsafe void Run(GSDump dump, int rendererOverride) GSsetGameCRC(dump.CRC, 0); - NativeMethods.SetClassLong(hWnd,/*GCL_HICON*/ -14, Program.hMainIcon.ToInt32()); + NativeMethods.SetClassLong(hWnd,/*GCL_HICON*/ -14, (uint)Program.hMainIcon.ToInt32()); fixed (byte* freeze = dump.StateData) { diff --git a/tools/GSDumpGUI/Library/NativeMethods.cs b/tools/GSDumpGUI/Library/NativeMethods.cs index 947310b14de93..7715e581c3435 100644 --- a/tools/GSDumpGUI/Library/NativeMethods.cs +++ b/tools/GSDumpGUI/Library/NativeMethods.cs @@ -62,7 +62,7 @@ static public class NativeMethods [SuppressUnmanagedCodeSecurityAttribute] [DllImport("user32", CharSet = CharSet.Ansi)] - public extern static int SetClassLong(IntPtr HWND, int index, long newlong); + public extern static int SetClassLong(IntPtr HWND, int index, uint newlong); [SuppressUnmanagedCodeSecurityAttribute] [DllImport("user32", CharSet = CharSet.Ansi)]