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
8397e3da
Commit
8397e3da
authored
Jul 23, 2016
by
Philipp Hoppermann
Committed by
Alexandre Julliard
Jul 25, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Implement InetNtopW.
Signed-off-by:
Philipp Hoppermann
<
plata@mailbox.org
>
Signed-off-by:
Bruno Jesus
<
00cpxxx@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4832adf8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
socket.c
dlls/ws2_32/socket.c
+20
-0
ws2_32.spec
dlls/ws2_32/ws2_32.spec
+1
-0
No files found.
dlls/ws2_32/socket.c
View file @
8397e3da
...
...
@@ -7934,6 +7934,26 @@ INT WINAPI InetPtonW(INT family, PCWSTR addr, PVOID buffer)
}
/***********************************************************************
* InetNtopW (WS2_32.@)
*/
PCWSTR
WINAPI
InetNtopW
(
INT
family
,
PVOID
addr
,
PWSTR
buffer
,
SIZE_T
len
)
{
char
bufferA
[
WS_INET6_ADDRSTRLEN
];
PWSTR
ret
=
NULL
;
TRACE
(
"family %d, addr (%p), buffer (%p), len %ld
\n
"
,
family
,
addr
,
buffer
,
len
);
if
(
WS_inet_ntop
(
family
,
addr
,
bufferA
,
sizeof
(
bufferA
)))
{
if
(
MultiByteToWideChar
(
CP_ACP
,
0
,
bufferA
,
-
1
,
buffer
,
len
))
ret
=
buffer
;
else
SetLastError
(
ERROR_INVALID_PARAMETER
);
}
return
ret
;
}
/***********************************************************************
* WSAStringToAddressA (WS2_32.80)
*/
INT
WINAPI
WSAStringToAddressA
(
LPSTR
AddressString
,
...
...
dlls/ws2_32/ws2_32.spec
View file @
8397e3da
...
...
@@ -54,6 +54,7 @@
@ stdcall GetAddrInfoExW(wstr wstr long ptr ptr ptr ptr ptr ptr ptr)
@ stdcall GetAddrInfoW(wstr wstr ptr ptr)
@ stdcall GetNameInfoW(ptr long ptr long ptr long long)
@ stdcall InetNtopW(long ptr ptr long)
@ stdcall InetPtonW(long wstr ptr)
@ stdcall WSApSetPostRoutine(ptr)
@ stdcall WPUCompleteOverlappedRequest(long ptr long long ptr)
...
...
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