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
d8dfce3e
Commit
d8dfce3e
authored
Jun 23, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Make getsockopt(SO_DEBUG) into a stub.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
75fe1064
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
socket.c
dlls/ws2_32/socket.c
+7
-1
sock.c
dlls/ws2_32/tests/sock.c
+2
-2
No files found.
dlls/ws2_32/socket.c
View file @
d8dfce3e
...
...
@@ -2103,7 +2103,6 @@ INT WINAPI WS_getsockopt(SOCKET s, INT level,
/* Handle common cases. The special cases are below, sorted
* alphabetically */
case
WS_SO_DEBUG
:
case
WS_SO_KEEPALIVE
:
case
WS_SO_OOBINLINE
:
case
WS_SO_RCVBUF
:
...
...
@@ -2168,6 +2167,13 @@ INT WINAPI WS_getsockopt(SOCKET s, INT level,
csinfo
->
iProtocol
=
infow
.
iProtocol
;
return
0
;
}
case
WS_SO_DEBUG
:
WARN
(
"returning 0 for SO_DEBUG
\n
"
);
*
(
DWORD
*
)
optval
=
0
;
SetLastError
(
0
);
return
0
;
case
WS_SO_DONTLINGER
:
{
struct
linger
lingval
;
...
...
dlls/ws2_32/tests/sock.c
View file @
d8dfce3e
...
...
@@ -10991,7 +10991,7 @@ static void test_so_debug(void)
debug
=
0xdeadbeef
;
ret
=
getsockopt
(
s
,
SOL_SOCKET
,
SO_DEBUG
,
(
char
*
)
&
debug
,
&
len
);
ok
(
!
ret
,
"got %d
\n
"
,
ret
);
todo_wine
ok
(
!
WSAGetLastError
(),
"got error %u
\n
"
,
WSAGetLastError
());
ok
(
!
WSAGetLastError
(),
"got error %u
\n
"
,
WSAGetLastError
());
ok
(
len
==
sizeof
(
debug
),
"got len %u
\n
"
,
len
);
ok
(
!
debug
,
"got debug %u
\n
"
,
debug
);
...
...
@@ -11006,7 +11006,7 @@ static void test_so_debug(void)
debug
=
0xdeadbeef
;
ret
=
getsockopt
(
s
,
SOL_SOCKET
,
SO_DEBUG
,
(
char
*
)
&
debug
,
&
len
);
ok
(
!
ret
,
"got %d
\n
"
,
ret
);
todo_wine
ok
(
!
WSAGetLastError
(),
"got error %u
\n
"
,
WSAGetLastError
());
ok
(
!
WSAGetLastError
(),
"got error %u
\n
"
,
WSAGetLastError
());
ok
(
len
==
sizeof
(
debug
),
"got len %u
\n
"
,
len
);
todo_wine
ok
(
debug
==
1
,
"got debug %u
\n
"
,
debug
);
...
...
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