win32: fix occasional race condition crash in subsequent rom loads
This commit is contained in:
parent
752a660b7d
commit
7a96bc7c3a
|
@ -1,7 +1,6 @@
|
||||||
/* snddx.cpp
|
/* snddx.cpp
|
||||||
|
|
||||||
Copyright (C) 2005-2007 Theo Berkau
|
Copyright (C) 2005-2007 Theo Berkau
|
||||||
Copyright (C) 2008-2009 DeSmuME team
|
Copyright (C) 2008-2010 DeSmuME team
|
||||||
|
|
||||||
This file is part of DeSmuME
|
This file is part of DeSmuME
|
||||||
|
|
||||||
|
@ -203,9 +202,9 @@ void SNDDXDeInit()
|
||||||
DWORD status=0;
|
DWORD status=0;
|
||||||
|
|
||||||
doterminate = true;
|
doterminate = true;
|
||||||
while(!terminated) {
|
while(!terminated)
|
||||||
Sleep(1);
|
Sleep(1);
|
||||||
}
|
terminated = false;
|
||||||
|
|
||||||
if (lpDSB2)
|
if (lpDSB2)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue