From b749c8ef7d25dad8462723b275cab88d29933bd2 Mon Sep 17 00:00:00 2001 From: KrossX Date: Mon, 29 Jul 2019 10:27:40 -0300 Subject: [PATCH] GSDumpGUI: Fix unbalanced stack exception. --- tools/GSDumpGUI/Library/GSDXWrapper.cs | 2 +- tools/GSDumpGUI/Library/NativeMethods.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)]