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
11d09f1f
Commit
11d09f1f
authored
Feb 16, 2015
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Don't strip port part from server name in GetAddress.
Callers take care of that already.
parent
50c21449
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
15 deletions
+3
-15
utility.c
dlls/wininet/utility.c
+3
-15
No files found.
dlls/wininet/utility.c
View file @
11d09f1f
...
...
@@ -129,27 +129,15 @@ BOOL GetAddress(LPCWSTR lpszServerName, INTERNET_PORT nServerPort,
struct
sockaddr
*
psa
,
socklen_t
*
sa_len
)
{
struct
addrinfo
*
res
,
hints
;
WCHAR
*
found
;
char
*
name
;
int
len
,
sz
;
int
sz
;
int
ret
;
TRACE
(
"%s
\n
"
,
debugstr_w
(
lpszServerName
));
/* Validate server name first
* Check if there is something like
* pinger.macromedia.com:80
* if yes, eliminate the :80....
*/
found
=
strchrW
(
lpszServerName
,
':'
);
if
(
found
)
len
=
found
-
lpszServerName
;
else
len
=
strlenW
(
lpszServerName
);
sz
=
WideCharToMultiByte
(
CP_UNIXCP
,
0
,
lpszServerName
,
len
,
NULL
,
0
,
NULL
,
NULL
);
sz
=
WideCharToMultiByte
(
CP_UNIXCP
,
0
,
lpszServerName
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
if
(
!
(
name
=
heap_alloc
(
sz
+
1
)))
return
FALSE
;
WideCharToMultiByte
(
CP_UNIXCP
,
0
,
lpszServerName
,
len
,
name
,
sz
,
NULL
,
NULL
);
WideCharToMultiByte
(
CP_UNIXCP
,
0
,
lpszServerName
,
-
1
,
name
,
sz
,
NULL
,
NULL
);
name
[
sz
]
=
0
;
memset
(
&
hints
,
0
,
sizeof
(
hints
)
);
...
...
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