fixed random crashing if End then Start emulation

This commit is contained in:
no 2015-11-26 00:40:33 -05:00
parent 58db5136d3
commit b42355817d
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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;
};