Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
5925a2ee
Commit
5925a2ee
authored
Nov 14, 2022
by
Paul Gofman
Committed by
Alexandre Julliard
Nov 15, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Return success for setting SO_ERROR.
parent
a8c1d5c1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
socket.c
dlls/ws2_32/socket.c
+3
-3
sock.c
dlls/ws2_32/tests/sock.c
+0
-1
No files found.
dlls/ws2_32/socket.c
View file @
5925a2ee
...
@@ -3173,9 +3173,9 @@ int WINAPI setsockopt( SOCKET s, int level, int optname, const char *optval, int
...
@@ -3173,9 +3173,9 @@ int WINAPI setsockopt( SOCKET s, int level, int optname, const char *optval, int
}
}
case
SO_ERROR
:
case
SO_ERROR
:
FIXME
(
"SO_ERROR, stub
!
\n
"
);
FIXME
(
"SO_ERROR, stub
.
\n
"
);
SetLastError
(
WSAENOPROTOOPT
);
SetLastError
(
ERROR_SUCCESS
);
return
-
1
;
return
0
;
case
SO_KEEPALIVE
:
case
SO_KEEPALIVE
:
if
(
optlen
<=
0
||
!
optval
)
if
(
optlen
<=
0
||
!
optval
)
...
...
dlls/ws2_32/tests/sock.c
View file @
5925a2ee
...
@@ -1431,7 +1431,6 @@ static void test_set_getsockopt(void)
...
@@ -1431,7 +1431,6 @@ static void test_set_getsockopt(void)
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
i
=
1234
;
i
=
1234
;
err
=
setsockopt
(
s
,
SOL_SOCKET
,
SO_ERROR
,
(
char
*
)
&
i
,
size
);
err
=
setsockopt
(
s
,
SOL_SOCKET
,
SO_ERROR
,
(
char
*
)
&
i
,
size
);
todo_wine
ok
(
!
err
&&
!
WSAGetLastError
(),
ok
(
!
err
&&
!
WSAGetLastError
(),
"got %d with %d (expected 0 with 0)
\n
"
,
"got %d with %d (expected 0 with 0)
\n
"
,
err
,
WSAGetLastError
());
err
,
WSAGetLastError
());
...
...
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