Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
fb704266
Commit
fb704266
authored
May 17, 2016
by
Hans Leidekker
Committed by
Alexandre Julliard
May 17, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qmgr: Change job state on failure in transfer_file_http.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
98f7468f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
file.c
dlls/qmgr/file.c
+4
-7
No files found.
dlls/qmgr/file.c
View file @
fb704266
...
...
@@ -420,7 +420,8 @@ done:
WinHttpCloseHandle
(
req
);
WinHttpCloseHandle
(
con
);
WinHttpCloseHandle
(
ses
);
if
(
!
ret
)
DeleteFileW
(
tmpfile
);
if
(
!
ret
&&
!
transitionJobState
(
job
,
BG_JOB_STATE_CONNECTING
,
BG_JOB_STATE_ERROR
))
transitionJobState
(
job
,
BG_JOB_STATE_TRANSFERRING
,
BG_JOB_STATE_ERROR
);
SetEvent
(
job
->
done
);
return
ret
;
...
...
@@ -525,13 +526,9 @@ BOOL processFile(BackgroundCopyFileImpl *file, BackgroundCopyJobImpl *job)
if
(
!
ret
)
{
TRACE
(
"WinHttpCrackUrl failed, trying local file copy
\n
"
);
if
(
!
transfer_file_local
(
file
,
tmpName
))
return
FALSE
;
}
else
if
(
!
transfer_file_http
(
file
,
&
uc
,
tmpName
))
{
WARN
(
"HTTP transfer failed
\n
"
);
return
FALSE
;
if
(
!
transfer_file_local
(
file
,
tmpName
))
WARN
(
"local transfer failed
\n
"
);
}
else
if
(
!
transfer_file_http
(
file
,
&
uc
,
tmpName
))
WARN
(
"HTTP transfer failed
\n
"
);
if
(
transitionJobState
(
job
,
BG_JOB_STATE_CONNECTING
,
BG_JOB_STATE_QUEUED
)
||
transitionJobState
(
job
,
BG_JOB_STATE_TRANSFERRING
,
BG_JOB_STATE_QUEUED
))
...
...
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