Merge pull request #784 from cxd4/fix-776
fixed random crashing if End then Start emulation
This commit is contained in:
commit
b7d401019e
|
@ -36,7 +36,7 @@ void CN64System::StartEmulationThread(ThreadInfo * Info)
|
||||||
|
|
||||||
CoInitialize(NULL);
|
CoInitialize(NULL);
|
||||||
|
|
||||||
EmulationStarting(Info->ThreadHandle, Info->ThreadID);
|
EmulationStarting(*Info->ThreadHandle, Info->ThreadID);
|
||||||
delete ((HANDLE *)Info->ThreadHandle);
|
delete ((HANDLE *)Info->ThreadHandle);
|
||||||
delete Info;
|
delete Info;
|
||||||
|
|
||||||
|
|
|
@ -90,7 +90,7 @@ private:
|
||||||
//Used for loading and potentially executing the CPU in its own thread.
|
//Used for loading and potentially executing the CPU in its own thread.
|
||||||
struct ThreadInfo
|
struct ThreadInfo
|
||||||
{
|
{
|
||||||
void * ThreadHandle;
|
void** ThreadHandle;
|
||||||
uint32_t ThreadID;
|
uint32_t ThreadID;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue