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
442ec6ac
Commit
442ec6ac
authored
Jul 18, 2007
by
Misha Koshelev
Committed by
Alexandre Julliard
Jul 19, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Remove FLAG_CALLED_SWITCH, which is now redundant.
parent
483d213e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
16 deletions
+6
-16
http.c
dlls/urlmon/http.c
+6
-16
No files found.
dlls/urlmon/http.c
View file @
442ec6ac
...
...
@@ -62,18 +62,13 @@ WINE_DEFAULT_DEBUG_CHANNEL(urlmon);
* if OnResponse does not return S_OK, Continue will not report data, and Read
* will report BSCF_FIRSTDATANOTIFICATION|BSCF_LASTDATANOTIFICATION when all
* data has been read.
*
* FLAG_CALLED_SWITCH is set before calling the protocol sink Switch function and
* unset by our Continue function to ensure that Switch is not called again until
* Continue is executed by the protocol sink.
*/
#define FLAG_REQUEST_COMPLETE 0x1
#define FLAG_CALLED_SWITCH 0x2
#define FLAG_FIRST_CONTINUE_COMPLETE 0x4
#define FLAG_FIRST_DATA_REPORTED 0x8
#define FLAG_ALL_DATA_READ 0x10
#define FLAG_LAST_DATA_REPORTED 0x20
#define FLAG_RESULT_REPORTED 0x40
#define FLAG_FIRST_CONTINUE_COMPLETE 0x2
#define FLAG_FIRST_DATA_REPORTED 0x4
#define FLAG_ALL_DATA_READ 0x8
#define FLAG_LAST_DATA_REPORTED 0x10
#define FLAG_RESULT_REPORTED 0x20
typedef
struct
{
const
IInternetProtocolVtbl
*
lpInternetProtocolVtbl
;
...
...
@@ -179,10 +174,7 @@ static void CALLBACK HTTPPROTOCOL_InternetStatusCallback(
ulStatusCode
=
BINDSTATUS_SENDINGREQUEST
;
break
;
case
INTERNET_STATUS_REQUEST_COMPLETE
:
if
(
This
->
flags
&
FLAG_CALLED_SWITCH
)
return
;
This
->
flags
|=
FLAG_CALLED_SWITCH
|
FLAG_REQUEST_COMPLETE
;
This
->
flags
|=
FLAG_REQUEST_COMPLETE
;
/* PROTOCOLDATA same as native */
memset
(
&
data
,
0
,
sizeof
(
data
));
data
.
dwState
=
0xf1000000
;
...
...
@@ -515,8 +507,6 @@ static HRESULT WINAPI HttpProtocol_Continue(IInternetProtocol *iface, PROTOCOLDA
goto
done
;
}
This
->
flags
&=
~
FLAG_CALLED_SWITCH
;
if
(
pProtocolData
->
pData
==
(
LPVOID
)
BINDSTATUS_DOWNLOADINGDATA
)
{
if
(
!
HttpQueryInfoW
(
This
->
request
,
HTTP_QUERY_STATUS_CODE
|
HTTP_QUERY_FLAG_NUMBER
,
...
...
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