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
3a35544d
Commit
3a35544d
authored
Sep 02, 2003
by
Rein Klazes
Committed by
Alexandre Julliard
Sep 02, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
_ws_gethostbyname() and WSAAsyncGetHostByName() when called with a
null name, should use the name returned by gethostname().
parent
9c771e70
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
async.c
dlls/winsock/async.c
+10
-0
socket.c
dlls/winsock/socket.c
+10
-0
No files found.
dlls/winsock/async.c
View file @
3a35544d
...
...
@@ -402,6 +402,16 @@ static DWORD WINAPI _async_queryfun(LPVOID arg) {
int
ebufsize
=
1024
;
struct
hostent
hostentry
;
int
locerr
=
ENOBUFS
;
#endif
char
buf
[
100
];
if
(
!
(
aq
->
host_name
))
{
aq
->
host_name
=
buf
;
if
(
gethostname
(
buf
,
100
)
==
-
1
)
{
fail
=
WSAENOBUFS
;
/* appropriate ? */
break
;
}
}
#ifdef HAVE_LINUX_GETHOSTBYNAME_R_6
he
=
NULL
;
extrabuf
=
HeapAlloc
(
GetProcessHeap
(),
0
,
ebufsize
)
;
while
(
extrabuf
)
{
...
...
dlls/winsock/socket.c
View file @
3a35544d
...
...
@@ -2903,6 +2903,16 @@ static WIN_hostent * __ws_gethostbyname(const char *name, int dup_flag)
int
ebufsize
=
1024
;
struct
hostent
hostentry
;
int
locerr
=
ENOBUFS
;
#endif
char
buf
[
100
];
if
(
!
name
)
{
name
=
buf
;
if
(
gethostname
(
buf
,
100
)
==
-
1
)
{
SetLastError
(
WSAENOBUFS
);
/* appropriate ? */
return
retval
;
}
}
#ifdef HAVE_LINUX_GETHOSTBYNAME_R_6
host
=
NULL
;
extrabuf
=
HeapAlloc
(
GetProcessHeap
(),
0
,
ebufsize
)
;
while
(
extrabuf
)
{
...
...
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