Commit 7af7e8ec authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

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

parent c4179cf6
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment