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
b23d90a5
Commit
b23d90a5
authored
Jun 01, 2007
by
Damjan Jovanovic
Committed by
Alexandre Julliard
Jun 01, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: gethostbyname("") should work.
parent
cb029e0b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
socket.c
dlls/ws2_32/socket.c
+1
-1
sock.c
dlls/ws2_32/tests/sock.c
+9
-0
No files found.
dlls/ws2_32/socket.c
View file @
b23d90a5
...
...
@@ -3222,7 +3222,7 @@ struct WS_hostent* WINAPI WS_gethostbyname(const char* name)
int
locerr
=
ENOBUFS
;
#endif
char
buf
[
100
];
if
(
!
name
)
{
if
(
!
name
||
!
name
[
0
]
)
{
name
=
buf
;
if
(
gethostname
(
buf
,
100
)
==
-
1
)
{
SetLastError
(
WSAENOBUFS
);
/* appropriate ? */
...
...
dlls/ws2_32/tests/sock.c
View file @
b23d90a5
...
...
@@ -1665,6 +1665,14 @@ static void test_getsockname(void)
WSACleanup
();
}
static
void
test_dns
(
void
)
{
struct
hostent
*
h
;
h
=
gethostbyname
(
""
);
ok
(
h
!=
NULL
,
"gethostbyname(
\"\"
) failed with %d
\n
"
,
h_errno
);
}
static
void
test_inet_addr
(
void
)
{
u_long
addr
;
...
...
@@ -1850,6 +1858,7 @@ START_TEST( sock )
test_accept
();
test_getsockname
();
test_inet_addr
();
test_dns
();
test_send
();
test_write_events
();
...
...
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