Module: wine Branch: master Commit: ee2281d37094d652dc567de089d45072431f6e36 URL: http://source.winehq.org/git/wine.git/?a=commit;h=ee2281d37094d652dc567de089...
Author: Rob Shearman robertshearman@gmail.com Date: Wed Oct 1 11:20:43 2008 +0100
urlmon: Compare HRESULT value explicitly against S_OK instead of using an implicit != 0 comparison.
---
dlls/urlmon/umon.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/urlmon/umon.c b/dlls/urlmon/umon.c index d6a4242..793a8f0 100644 --- a/dlls/urlmon/umon.c +++ b/dlls/urlmon/umon.c @@ -237,7 +237,7 @@ static void Binding_FinishedDownload(Binding *This, HRESULT hr) IBindStatusCallback_OnProgress(This->pbscb, This->total_read, This->expected_size, BINDSTATUS_ENDDOWNLOADDATA, This->URLName); IBindStatusCallback_OnDataAvailable(This->pbscb, BSCF_LASTDATANOTIFICATION, This->total_read, &fmt, &stg); - if (hr) + if (hr != S_OK) { WCHAR *pwchError = 0;