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
671cf16f
Commit
671cf16f
authored
Aug 02, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Aug 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Reimplement inet_addr() on top of inet_pton().
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b159f6e2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
protocol.c
dlls/ws2_32/protocol.c
+6
-3
protocol.c
dlls/ws2_32/tests/protocol.c
+1
-1
No files found.
dlls/ws2_32/protocol.c
View file @
671cf16f
...
...
@@ -2025,10 +2025,13 @@ int WINAPI WSAAddressToStringW( struct WS_sockaddr *addr, DWORD addr_len,
/***********************************************************************
* inet_addr (ws2_32.11)
*/
WS_u_long
WINAPI
WS_inet_addr
(
const
char
*
cp
)
WS_u_long
WINAPI
WS_inet_addr
(
const
char
*
str
)
{
if
(
!
cp
)
return
INADDR_NONE
;
return
inet_addr
(
cp
);
WS_u_long
addr
;
if
(
WS_inet_pton
(
WS_AF_INET
,
str
,
&
addr
)
==
1
)
return
addr
;
return
WS_INADDR_NONE
;
}
...
...
dlls/ws2_32/tests/protocol.c
View file @
671cf16f
...
...
@@ -945,7 +945,7 @@ static void test_inet_pton(void)
WSASetLastError
(
0xdeadbeef
);
ret
=
inet_addr
(
NULL
);
ok
(
ret
==
INADDR_NONE
,
"got %#x
\n
"
,
ret
);
todo_wine
ok
(
WSAGetLastError
()
==
WSAEFAULT
,
"got error %u
\n
"
,
WSAGetLastError
());
ok
(
WSAGetLastError
()
==
WSAEFAULT
,
"got error %u
\n
"
,
WSAGetLastError
());
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
ipv4_tests
);
++
i
)
{
...
...
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