fixed processor load always at 100%

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@156 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
spacy51 2007-12-03 23:09:10 +00:00
parent eb109be567
commit 952ca087ce
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ bool DirectSound::init()
if( !theApp.useOldSync ) {
if( FAILED( hr = dsbSecondary->QueryInterface( IID_IDirectSoundNotify8, (LPVOID*)&dsbNotify ) ) ) {
if( SUCCEEDED( hr = dsbSecondary->QueryInterface( IID_IDirectSoundNotify8, (LPVOID*)&dsbNotify ) ) ) {
dsbEvent = CreateEvent( NULL, FALSE, FALSE, NULL );
DSBPOSITIONNOTIFY notify[10];
for( i = 0; i < 10; i++ ) {