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
c1568455
Commit
c1568455
authored
Dec 25, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 26, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Use proc instead of enum in HTTPSENDREQUESTW request.
parent
e30037f0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
19 deletions
+18
-19
http.c
dlls/wininet/http.c
+18
-3
internet.c
dlls/wininet/internet.c
+0
-15
internet.h
dlls/wininet/internet.h
+0
-1
No files found.
dlls/wininet/http.c
View file @
c1568455
...
@@ -180,6 +180,20 @@ static void HTTP_FreeTokens(LPWSTR * token_array)
...
@@ -180,6 +180,20 @@ static void HTTP_FreeTokens(LPWSTR * token_array)
* Helper functions for the HttpSendRequest(Ex) functions
* Helper functions for the HttpSendRequest(Ex) functions
*
*
*/
*/
static
void
AsyncHttpSendRequestProc
(
WORKREQUEST
*
workRequest
)
{
struct
WORKREQ_HTTPSENDREQUESTW
const
*
req
=
&
workRequest
->
u
.
HttpSendRequestW
;
LPWININETHTTPREQW
lpwhr
=
(
LPWININETHTTPREQW
)
workRequest
->
hdr
;
TRACE
(
"%p
\n
"
,
lpwhr
);
HTTP_HttpSendRequestW
(
lpwhr
,
req
->
lpszHeader
,
req
->
dwHeaderLength
,
req
->
lpOptional
,
req
->
dwOptionalLength
,
req
->
dwContentLength
,
req
->
bEndRequest
);
HeapFree
(
GetProcessHeap
(),
0
,
req
->
lpszHeader
);
}
static
void
HTTP_FixVerb
(
LPWININETHTTPREQW
lpwhr
)
static
void
HTTP_FixVerb
(
LPWININETHTTPREQW
lpwhr
)
{
{
/* if the verb is NULL default to GET */
/* if the verb is NULL default to GET */
...
@@ -1778,7 +1792,8 @@ BOOL WINAPI HttpSendRequestExW(HINTERNET hRequest,
...
@@ -1778,7 +1792,8 @@ BOOL WINAPI HttpSendRequestExW(HINTERNET hRequest,
WORKREQUEST
workRequest
;
WORKREQUEST
workRequest
;
struct
WORKREQ_HTTPSENDREQUESTW
*
req
;
struct
WORKREQ_HTTPSENDREQUESTW
*
req
;
workRequest
.
asyncall
=
HTTPSENDREQUESTW
;
workRequest
.
asyncall
=
CALLASYNCPROC
;
workRequest
.
asyncproc
=
AsyncHttpSendRequestProc
;
workRequest
.
hdr
=
WININET_AddRef
(
&
lpwhr
->
hdr
);
workRequest
.
hdr
=
WININET_AddRef
(
&
lpwhr
->
hdr
);
req
=
&
workRequest
.
u
.
HttpSendRequestW
;
req
=
&
workRequest
.
u
.
HttpSendRequestW
;
if
(
lpBuffersIn
)
if
(
lpBuffersIn
)
...
@@ -1873,7 +1888,8 @@ BOOL WINAPI HttpSendRequestW(HINTERNET hHttpRequest, LPCWSTR lpszHeaders,
...
@@ -1873,7 +1888,8 @@ BOOL WINAPI HttpSendRequestW(HINTERNET hHttpRequest, LPCWSTR lpszHeaders,
WORKREQUEST
workRequest
;
WORKREQUEST
workRequest
;
struct
WORKREQ_HTTPSENDREQUESTW
*
req
;
struct
WORKREQ_HTTPSENDREQUESTW
*
req
;
workRequest
.
asyncall
=
HTTPSENDREQUESTW
;
workRequest
.
asyncall
=
CALLASYNCPROC
;
workRequest
.
asyncproc
=
AsyncHttpSendRequestProc
;
workRequest
.
hdr
=
WININET_AddRef
(
&
lpwhr
->
hdr
);
workRequest
.
hdr
=
WININET_AddRef
(
&
lpwhr
->
hdr
);
req
=
&
workRequest
.
u
.
HttpSendRequestW
;
req
=
&
workRequest
.
u
.
HttpSendRequestW
;
if
(
lpszHeaders
)
if
(
lpszHeaders
)
...
@@ -2351,7 +2367,6 @@ lend:
...
@@ -2351,7 +2367,6 @@ lend:
return
bSuccess
;
return
bSuccess
;
}
}
/***********************************************************************
/***********************************************************************
* HTTP_Connect (internal)
* HTTP_Connect (internal)
*
*
...
...
dlls/wininet/internet.c
View file @
c1568455
...
@@ -3363,21 +3363,6 @@ static VOID INTERNET_ExecuteWork(void)
...
@@ -3363,21 +3363,6 @@ static VOID INTERNET_ExecuteWork(void)
}
}
break
;
break
;
case
HTTPSENDREQUESTW
:
{
struct
WORKREQ_HTTPSENDREQUESTW
*
req
=
&
workRequest
.
u
.
HttpSendRequestW
;
LPWININETHTTPREQW
lpwhr
=
(
LPWININETHTTPREQW
)
workRequest
.
hdr
;
TRACE
(
"HTTPSENDREQUESTW %p
\n
"
,
lpwhr
);
HTTP_HttpSendRequestW
(
lpwhr
,
req
->
lpszHeader
,
req
->
dwHeaderLength
,
req
->
lpOptional
,
req
->
dwOptionalLength
,
req
->
dwContentLength
,
req
->
bEndRequest
);
HeapFree
(
GetProcessHeap
(),
0
,
req
->
lpszHeader
);
}
break
;
case
HTTPOPENREQUESTW
:
case
HTTPOPENREQUESTW
:
{
{
struct
WORKREQ_HTTPOPENREQUESTW
*
req
=
&
workRequest
.
u
.
HttpOpenRequestW
;
struct
WORKREQ_HTTPOPENREQUESTW
*
req
=
&
workRequest
.
u
.
HttpOpenRequestW
;
...
...
dlls/wininet/internet.h
View file @
c1568455
...
@@ -261,7 +261,6 @@ typedef enum
...
@@ -261,7 +261,6 @@ typedef enum
FTPREMOVEDIRECTORYW
,
FTPREMOVEDIRECTORYW
,
FTPRENAMEFILEW
,
FTPRENAMEFILEW
,
FTPFINDNEXTW
,
FTPFINDNEXTW
,
HTTPSENDREQUESTW
,
HTTPOPENREQUESTW
,
HTTPOPENREQUESTW
,
INTERNETOPENURLW
,
INTERNETOPENURLW
,
INTERNETREADFILEEXA
,
INTERNETREADFILEEXA
,
...
...
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