Rob Shearman : urlmon: Compare HRESULT value explicitly against S_OK instead of using an implicit ! = 0 comparison.
Alexandre Julliard
julliard at winehq.org
Wed Oct 1 14:09:41 CDT 2008
Module: wine
Branch: master
Commit: ee2281d37094d652dc567de089d45072431f6e36
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ee2281d37094d652dc567de089d45072431f6e36
Author: Rob Shearman <robertshearman at 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;
More information about the wine-cvs
mailing list