Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
dd843b87
Commit
dd843b87
authored
Oct 08, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qmgr: Use FAILED instead of !SUCCEEDED.
parent
3ed8ffcc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
file.c
dlls/qmgr/file.c
+1
-1
job.c
dlls/qmgr/job.c
+1
-1
service.c
dlls/qmgr/service.c
+3
-3
No files found.
dlls/qmgr/file.c
View file @
dd843b87
...
...
@@ -425,7 +425,7 @@ BOOL processFile(BackgroundCopyFileImpl *file, BackgroundCopyJobImpl *job)
return
FALSE
;
}
}
else
if
(
!
SUCCEED
ED
(
hr
))
else
if
(
FAIL
ED
(
hr
))
{
ERR
(
"URLDownload failed: eh 0x%08x
\n
"
,
hr
);
transitionJobState
(
job
,
BG_JOB_STATE_TRANSFERRING
,
BG_JOB_STATE_ERROR
);
...
...
dlls/qmgr/job.c
View file @
dd843b87
...
...
@@ -83,7 +83,7 @@ static HRESULT WINAPI BITS_IBackgroundCopyJob_AddFileSet(
{
HRESULT
hr
=
IBackgroundCopyJob_AddFile
(
iface
,
pFileSet
[
i
].
RemoteName
,
pFileSet
[
i
].
LocalName
);
if
(
!
SUCCEED
ED
(
hr
))
if
(
FAIL
ED
(
hr
))
return
hr
;
}
return
S_OK
;
...
...
dlls/qmgr/service.c
View file @
dd843b87
...
...
@@ -85,20 +85,20 @@ StartCount(void)
TRACE
(
"
\n
"
);
hr
=
CoInitializeEx
(
NULL
,
COINIT_MULTITHREADED
);
if
(
!
SUCCEED
ED
(
hr
))
if
(
FAIL
ED
(
hr
))
return
FALSE
;
hr
=
CoInitializeSecurity
(
NULL
,
-
1
,
NULL
,
NULL
,
RPC_C_AUTHN_LEVEL_NONE
,
RPC_C_IMP_LEVEL_IMPERSONATE
,
NULL
,
EOAC_NONE
,
NULL
);
if
(
!
SUCCEED
ED
(
hr
))
if
(
FAIL
ED
(
hr
))
return
FALSE
;
hr
=
CoRegisterClassObject
(
&
CLSID_BackgroundCopyManager
,
(
IUnknown
*
)
&
BITS_ClassFactory
,
CLSCTX_LOCAL_SERVER
,
REGCLS_MULTIPLEUSE
,
&
dwReg
);
if
(
!
SUCCEED
ED
(
hr
))
if
(
FAIL
ED
(
hr
))
return
FALSE
;
return
TRUE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment