dsound: Add explicit "!= S_OK" to expressions that use HRESULTs as booleans.

This commit is contained in:
Rob Shearman 2008-09-12 13:01:45 +01:00 committed by Alexandre Julliard
parent c4179cf64e
commit 7af7e8ece5
1 changed files with 1 additions and 1 deletions

View File

@ -408,7 +408,7 @@ HRESULT DSOUND_PrimaryGetPosition(DirectSoundDevice *device, LPDWORD playpos, LP
if (device->hwbuf) {
HRESULT err=IDsDriverBuffer_GetPosition(device->hwbuf,playpos,writepos);
if (err) {
if (err != S_OK) {
WARN("IDsDriverBuffer_GetPosition failed\n");
return err;
}