qmgr: Use FAILED instead of !SUCCEEDED.
Michael Stefaniuc
mstefani at redhat.de
Tue Oct 7 18:33:25 CDT 2008
---
dlls/qmgr/file.c | 2 +-
dlls/qmgr/job.c | 2 +-
dlls/qmgr/service.c | 6 +++---
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/qmgr/file.c b/dlls/qmgr/file.c
index 622f7a2..4129887 100644
--- a/dlls/qmgr/file.c
+++ b/dlls/qmgr/file.c
@@ -425,7 +425,7 @@ BOOL processFile(BackgroundCopyFileImpl *file, BackgroundCopyJobImpl *job)
return FALSE;
}
}
- else if (!SUCCEEDED(hr))
+ else if (FAILED(hr))
{
ERR("URLDownload failed: eh 0x%08x\n", hr);
transitionJobState(job, BG_JOB_STATE_TRANSFERRING, BG_JOB_STATE_ERROR);
diff --git a/dlls/qmgr/job.c b/dlls/qmgr/job.c
index e344027..871f14c 100644
--- a/dlls/qmgr/job.c
+++ b/dlls/qmgr/job.c
@@ -83,7 +83,7 @@ static HRESULT WINAPI BITS_IBackgroundCopyJob_AddFileSet(
{
HRESULT hr = IBackgroundCopyJob_AddFile(iface, pFileSet[i].RemoteName,
pFileSet[i].LocalName);
- if (!SUCCEEDED(hr))
+ if (FAILED(hr))
return hr;
}
return S_OK;
diff --git a/dlls/qmgr/service.c b/dlls/qmgr/service.c
index b00a922..1e0a545 100644
--- a/dlls/qmgr/service.c
+++ b/dlls/qmgr/service.c
@@ -85,20 +85,20 @@ StartCount(void)
TRACE("\n");
hr = CoInitializeEx(NULL, COINIT_MULTITHREADED);
- if (!SUCCEEDED(hr))
+ if (FAILED(hr))
return FALSE;
hr = CoInitializeSecurity(NULL, -1, NULL, NULL, RPC_C_AUTHN_LEVEL_NONE,
RPC_C_IMP_LEVEL_IMPERSONATE, NULL, EOAC_NONE,
NULL);
- if (!SUCCEEDED(hr))
+ if (FAILED(hr))
return FALSE;
hr = CoRegisterClassObject(&CLSID_BackgroundCopyManager,
(IUnknown *) &BITS_ClassFactory,
CLSCTX_LOCAL_SERVER, REGCLS_MULTIPLEUSE,
&dwReg);
- if (!SUCCEEDED(hr))
+ if (FAILED(hr))
return FALSE;
return TRUE;
--
1.6.0.2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20081008/ecc395ae/attachment.pgp
More information about the wine-patches
mailing list