From 952ca087ced513c52c977a7fbce7f23cac337e9c Mon Sep 17 00:00:00 2001 From: spacy51 Date: Mon, 3 Dec 2007 23:09:10 +0000 Subject: [PATCH] fixed processor load always at 100% git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@156 a31d4220-a93d-0410-bf67-fe4944624d44 --- src/win32/DirectSound.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win32/DirectSound.cpp b/src/win32/DirectSound.cpp index e4cd617a..4c0fa10c 100644 --- a/src/win32/DirectSound.cpp +++ b/src/win32/DirectSound.cpp @@ -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++ ) {