Merge pull request #784 from cxd4/fix-776

fixed random crashing if End then Start emulation
This commit is contained in:
zilmar 2015-11-26 19:59:18 +11:00
commit b7d401019e
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;
};