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
2e2a80ce
Commit
2e2a80ce
authored
Dec 30, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use IUri in IHTMLLocation::put_port implementation.
parent
71109b50
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
htmllocation.c
dlls/mshtml/htmllocation.c
+13
-8
No files found.
dlls/mshtml/htmllocation.c
View file @
2e2a80ce
...
...
@@ -402,7 +402,7 @@ static HRESULT WINAPI HTMLLocation_put_port(IHTMLLocation *iface, BSTR v)
static
HRESULT
WINAPI
HTMLLocation_get_port
(
IHTMLLocation
*
iface
,
BSTR
*
p
)
{
HTMLLocation
*
This
=
impl_from_IHTMLLocation
(
iface
);
URL_COMPONENTSW
url
=
{
sizeof
(
URL_COMPONENTSW
)}
;
DWORD
port
;
HRESULT
hres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
...
...
@@ -410,18 +410,23 @@ static HRESULT WINAPI HTMLLocation_get_port(IHTMLLocation *iface, BSTR *p)
if
(
!
p
)
return
E_POINTER
;
hres
=
get_url_components
(
This
,
&
url
);
if
(
!
This
->
window
||
!
This
->
window
->
uri
)
{
FIXME
(
"No current URI
\n
"
);
return
E_NOTIMPL
;
}
hres
=
IUri_GetPort
(
This
->
window
->
uri
,
&
port
);
if
(
FAILED
(
hres
))
return
hres
;
if
(
url
.
nPort
)
{
const
WCHAR
format
[]
=
{
'%'
,
'u'
,
0
};
WCHAR
buf
[
6
];
snprintfW
(
buf
,
6
,
format
,
url
.
nPort
);
if
(
hres
==
S_OK
)
{
static
const
WCHAR
formatW
[]
=
{
'%'
,
'u'
,
0
};
WCHAR
buf
[
12
];
sprintfW
(
buf
,
formatW
,
port
);
*
p
=
SysAllocString
(
buf
);
}
else
{
const
WCHAR
empty
[]
=
{
0
};
*
p
=
SysAllocString
(
empty
);
*
p
=
SysAllocStringLen
(
NULL
,
0
);
}
if
(
!*
p
)
...
...
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