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
a26b82fc
Commit
a26b82fc
authored
Oct 14, 2009
by
Andrew Eikum
Committed by
Alexandre Julliard
Oct 15, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Add helper function get_url_components.
parent
ab857c84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
4 deletions
+20
-4
htmllocation.c
dlls/mshtml/htmllocation.c
+20
-4
No files found.
dlls/mshtml/htmllocation.c
View file @
a26b82fc
...
...
@@ -46,6 +46,23 @@ static HRESULT get_url(HTMLLocation *This, const WCHAR **ret)
return
S_OK
;
}
static
HRESULT
get_url_components
(
HTMLLocation
*
This
,
URL_COMPONENTSW
*
url
)
{
const
WCHAR
*
doc_url
;
HRESULT
hres
;
hres
=
get_url
(
This
,
&
doc_url
);
if
(
FAILED
(
hres
))
return
hres
;
if
(
!
InternetCrackUrlW
(
doc_url
,
0
,
0
,
url
))
{
FIXME
(
"InternetCrackUrlW failed: 0x%08x
\n
"
,
GetLastError
());
SetLastError
(
0
);
return
E_FAIL
;
}
return
S_OK
;
}
#define HTMLLOCATION_THIS(iface) DEFINE_THIS(HTMLLocation, HTMLLocation, iface)
...
...
@@ -270,10 +287,9 @@ static HRESULT WINAPI HTMLLocation_get_pathname(IHTMLLocation *iface, BSTR *p)
}
url
.
dwUrlPathLength
=
1
;
if
(
!
InternetCrackUrlW
(
doc_url
,
0
,
0
,
&
url
))
{
FIXME
(
"InternetCrackUrl failed
\n
"
);
return
E_FAIL
;
}
hres
=
get_url_components
(
This
,
&
url
);
if
(
FAILED
(
hres
))
return
hres
;
if
(
!
url
.
dwUrlPathLength
)
{
*
p
=
NULL
;
...
...
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