fixed processor load always at 100%

This commit is contained in:
spacy51 2007-12-03 23:09:10 +00:00
parent 5e3902b476
commit 50b9e5ff4d
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ bool DirectSound::init()
if( !theApp.useOldSync ) { 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 ); dsbEvent = CreateEvent( NULL, FALSE, FALSE, NULL );
DSBPOSITIONNOTIFY notify[10]; DSBPOSITIONNOTIFY notify[10];
for( i = 0; i < 10; i++ ) { for( i = 0; i < 10; i++ ) {