dsound: Add explicit "!= S_OK" to expressions that use HRESULTs as booleans.
This commit is contained in:
parent
c4179cf64e
commit
7af7e8ece5
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue