Module: wine Branch: master Commit: 7af7e8ece5755e06fc90b0607b4beaf7868d51f1 URL: http://source.winehq.org/git/wine.git/?a=commit;h=7af7e8ece5755e06fc90b0607b...
Author: Rob Shearman robertshearman@gmail.com Date: Fri Sep 12 13:01:45 2008 +0100
dsound: Add explicit "!= S_OK" to expressions that use HRESULTs as booleans.
---
dlls/dsound/primary.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/dsound/primary.c b/dlls/dsound/primary.c index 7ad561f..4e80778 100644 --- a/dlls/dsound/primary.c +++ b/dlls/dsound/primary.c @@ -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; }