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
f799192b
Commit
f799192b
authored
Feb 08, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Fix ReportResult on async protocols.
parent
ecefccca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
binding.c
dlls/urlmon/binding.c
+20
-2
No files found.
dlls/urlmon/binding.c
View file @
f799192b
/*
* Copyright 2005
Jacek Caban
* Copyright 2005
-2007 Jacek Caban for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -895,6 +895,18 @@ static HRESULT WINAPI InternetProtocolSink_ReportData(IInternetProtocolSink *ifa
return
S_OK
;
}
static
void
report_result_proc
(
Binding
*
binding
,
task_header_t
*
t
)
{
IInternetProtocol_Terminate
(
binding
->
protocol
,
0
);
if
(
binding
->
request_locked
)
{
IInternetProtocol_UnlockRequest
(
binding
->
protocol
);
binding
->
request_locked
=
FALSE
;
}
HeapFree
(
GetProcessHeap
(),
0
,
t
);
}
static
HRESULT
WINAPI
InternetProtocolSink_ReportResult
(
IInternetProtocolSink
*
iface
,
HRESULT
hrResult
,
DWORD
dwError
,
LPCWSTR
szResult
)
{
...
...
@@ -902,7 +914,13 @@ static HRESULT WINAPI InternetProtocolSink_ReportResult(IInternetProtocolSink *i
TRACE
(
"(%p)->(%08x %d %s)
\n
"
,
This
,
hrResult
,
dwError
,
debugstr_w
(
szResult
));
IInternetProtocol_Terminate
(
This
->
protocol
,
0
);
if
(
GetCurrentThreadId
()
==
This
->
apartment_thread
&&
!
This
->
continue_call
)
{
IInternetProtocol_Terminate
(
This
->
protocol
,
0
);
}
else
{
task_header_t
*
task
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
task_header_t
));
push_task
(
This
,
task
,
report_result_proc
);
}
return
S_OK
;
}
...
...
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