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
6e5c2f96
Commit
6e5c2f96
authored
Feb 26, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 26, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Make HttpProtocol implementation vtbl offset independent.
parent
6b505e14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
http.c
dlls/urlmon/http.c
+6
-6
No files found.
dlls/urlmon/http.c
View file @
6e5c2f96
...
...
@@ -77,6 +77,9 @@ typedef struct {
LONG
ref
;
}
HttpProtocol
;
#define PROTOCOL(x) ((IInternetProtocol*) &(x)->lpInternetProtocolVtbl)
#define PRIORITY(x) ((IInternetPriority*) &(x)->lpInternetPriorityVtbl)
/* Default headers from native */
static
const
WCHAR
wszHeaders
[]
=
{
'A'
,
'c'
,
'c'
,
'e'
,
'p'
,
't'
,
'-'
,
'E'
,
'n'
,
'c'
,
'o'
,
'd'
,
'i'
,
'n'
,
'g'
,
':'
,
' '
,
'g'
,
'z'
,
'i'
,
'p'
,
','
,
' '
,
'd'
,
'e'
,
'f'
,
'l'
,
'a'
,
't'
,
'e'
,
0
};
...
...
@@ -186,10 +189,10 @@ static void CALLBACK HTTPPROTOCOL_InternetStatusCallback(
if
(
This
->
grfBINDF
&
BINDF_FROMURLMON
)
IInternetProtocolSink_Switch
(
This
->
protocol_sink
,
&
data
);
else
IInternetProtocol_Continue
(
(
IInternetProtocol
*
)
This
,
&
data
);
IInternetProtocol_Continue
(
PROTOCOL
(
This
)
,
&
data
);
return
;
case
INTERNET_STATUS_HANDLE_CREATED
:
IInternetProtocol_AddRef
(
(
IInternetProtocol
*
)
This
);
IInternetProtocol_AddRef
(
PROTOCOL
(
This
)
);
return
;
case
INTERNET_STATUS_HANDLE_CLOSING
:
if
(
*
(
HINTERNET
*
)
lpvStatusInformation
==
This
->
connect
)
...
...
@@ -210,7 +213,7 @@ static void CALLBACK HTTPPROTOCOL_InternetStatusCallback(
memset
(
&
This
->
bind_info
,
0
,
sizeof
(
This
->
bind_info
));
}
}
IInternetProtocol_Release
(
(
IInternetProtocol
*
)
This
);
IInternetProtocol_Release
(
PROTOCOL
(
This
)
);
return
;
default:
WARN
(
"Unhandled Internet status callback %d
\n
"
,
dwInternetStatus
);
...
...
@@ -236,9 +239,6 @@ static inline LPWSTR strndupW(LPCWSTR string, int len)
* Interface implementations
*/
#define PROTOCOL(x) ((IInternetProtocol*) &(x)->lpInternetProtocolVtbl)
#define PRIORITY(x) ((IInternetPriority*) &(x)->lpInternetPriorityVtbl)
#define PROTOCOL_THIS(iface) DEFINE_THIS(HttpProtocol, InternetProtocol, iface)
static
HRESULT
WINAPI
HttpProtocol_QueryInterface
(
IInternetProtocol
*
iface
,
REFIID
riid
,
void
**
ppv
)
...
...
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