From b42355817de662a2d2d54c53da07b677e17fed2b Mon Sep 17 00:00:00 2001 From: no Date: Thu, 26 Nov 2015 00:40:33 -0500 Subject: [PATCH] fixed random crashing if End then Start emulation --- Source/Project64/N64 System/Emulation Thread.cpp | 2 +- Source/Project64/N64 System/N64 Class.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Project64/N64 System/Emulation Thread.cpp b/Source/Project64/N64 System/Emulation Thread.cpp index 4c2742835..7e41863fa 100644 --- a/Source/Project64/N64 System/Emulation Thread.cpp +++ b/Source/Project64/N64 System/Emulation Thread.cpp @@ -36,7 +36,7 @@ void CN64System::StartEmulationThread(ThreadInfo * Info) CoInitialize(NULL); - EmulationStarting(Info->ThreadHandle, Info->ThreadID); + EmulationStarting(*Info->ThreadHandle, Info->ThreadID); delete ((HANDLE *)Info->ThreadHandle); delete Info; diff --git a/Source/Project64/N64 System/N64 Class.h b/Source/Project64/N64 System/N64 Class.h index 5c38179c0..4714d649e 100644 --- a/Source/Project64/N64 System/N64 Class.h +++ b/Source/Project64/N64 System/N64 Class.h @@ -90,7 +90,7 @@ private: //Used for loading and potentially executing the CPU in its own thread. struct ThreadInfo { - void * ThreadHandle; + void** ThreadHandle; uint32_t ThreadID; };