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
eada1be3
Commit
eada1be3
authored
Sep 06, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Sep 06, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
http.sys: Use the SOCKET type for Windows sockets.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
11b8bbc7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
http.c
dlls/http.sys/http.c
+8
-7
No files found.
dlls/http.sys/http.c
View file @
eada1be3
...
@@ -209,7 +209,7 @@ struct connection
...
@@ -209,7 +209,7 @@ struct connection
{
{
struct
list
entry
;
/* in "connections" below */
struct
list
entry
;
/* in "connections" below */
int
socket
;
SOCKET
socket
;
char
*
buffer
;
char
*
buffer
;
unsigned
int
len
,
size
;
unsigned
int
len
,
size
;
...
@@ -246,18 +246,18 @@ struct request_queue
...
@@ -246,18 +246,18 @@ struct request_queue
LIST_ENTRY
irp_queue
;
LIST_ENTRY
irp_queue
;
HTTP_URL_CONTEXT
context
;
HTTP_URL_CONTEXT
context
;
char
*
url
;
char
*
url
;
int
socket
;
SOCKET
socket
;
};
};
static
struct
list
request_queues
=
LIST_INIT
(
request_queues
);
static
struct
list
request_queues
=
LIST_INIT
(
request_queues
);
static
void
accept_connection
(
int
socket
)
static
void
accept_connection
(
SOCKET
socket
)
{
{
struct
connection
*
conn
;
struct
connection
*
conn
;
ULONG
true
=
1
;
ULONG
true
=
1
;
int
peer
;
SOCKET
peer
;
if
((
peer
=
accept
(
socket
,
NULL
,
NULL
))
==
-
1
)
if
((
peer
=
accept
(
socket
,
NULL
,
NULL
))
==
INVALID_SOCKET
)
return
;
return
;
if
(
!
(
conn
=
heap_alloc_zero
(
sizeof
(
*
conn
))))
if
(
!
(
conn
=
heap_alloc_zero
(
sizeof
(
*
conn
))))
...
@@ -1046,10 +1046,11 @@ static NTSTATUS http_add_url(struct request_queue *queue, IRP *irp)
...
@@ -1046,10 +1046,11 @@ static NTSTATUS http_add_url(struct request_queue *queue, IRP *irp)
const
struct
http_add_url_params
*
params
=
irp
->
AssociatedIrp
.
SystemBuffer
;
const
struct
http_add_url_params
*
params
=
irp
->
AssociatedIrp
.
SystemBuffer
;
struct
sockaddr_in
addr
;
struct
sockaddr_in
addr
;
struct
connection
*
conn
;
struct
connection
*
conn
;
unsigned
int
count
=
0
;
char
*
url
,
*
endptr
;
char
*
url
,
*
endptr
;
int
s
,
count
=
0
;
ULONG
true
=
1
;
ULONG
true
=
1
;
const
char
*
p
;
const
char
*
p
;
SOCKET
s
;
TRACE
(
"host %s, context %s.
\n
"
,
debugstr_a
(
params
->
url
),
wine_dbgstr_longlong
(
params
->
context
));
TRACE
(
"host %s, context %s.
\n
"
,
debugstr_a
(
params
->
url
),
wine_dbgstr_longlong
(
params
->
context
));
...
@@ -1089,7 +1090,7 @@ static NTSTATUS http_add_url(struct request_queue *queue, IRP *irp)
...
@@ -1089,7 +1090,7 @@ static NTSTATUS http_add_url(struct request_queue *queue, IRP *irp)
return
STATUS_NOT_IMPLEMENTED
;
return
STATUS_NOT_IMPLEMENTED
;
}
}
if
((
s
=
socket
(
AF_INET
,
SOCK_STREAM
,
0
))
==
-
1
)
if
((
s
=
socket
(
AF_INET
,
SOCK_STREAM
,
0
))
==
INVALID_SOCKET
)
{
{
ERR
(
"Failed to create socket, error %u.
\n
"
,
WSAGetLastError
());
ERR
(
"Failed to create socket, error %u.
\n
"
,
WSAGetLastError
());
LeaveCriticalSection
(
&
http_cs
);
LeaveCriticalSection
(
&
http_cs
);
...
...
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