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
6d8c2d74
Commit
6d8c2d74
authored
17 years ago
by
Michael Stefaniuc
Committed by
Alexandre Julliard
17 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet/tests: Do not compare the return value of socket() with 0. Use INVALID_SOCKET instead.
parent
312a1db3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
http.c
dlls/wininet/tests/http.c
+3
-2
No files found.
dlls/wininet/tests/http.c
View file @
6d8c2d74
...
...
@@ -1228,7 +1228,8 @@ struct server_info {
static
DWORD
CALLBACK
server_thread
(
LPVOID
param
)
{
struct
server_info
*
si
=
param
;
int
r
,
s
,
c
,
i
,
on
;
int
r
,
c
,
i
,
on
;
SOCKET
s
;
struct
sockaddr_in
sa
;
char
buffer
[
0x100
];
WSADATA
wsaData
;
...
...
@@ -1237,7 +1238,7 @@ static DWORD CALLBACK server_thread(LPVOID param)
WSAStartup
(
MAKEWORD
(
1
,
1
),
&
wsaData
);
s
=
socket
(
AF_INET
,
SOCK_STREAM
,
0
);
if
(
s
<
0
)
if
(
s
==
INVALID_SOCKET
)
return
1
;
on
=
1
;
...
...
This diff is collapsed.
Click to expand it.
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