From 50b9e5ff4d408ba0a20e3ca3b014a028f9012d7f 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% --- 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++ ) {