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
ffe9cc87
Commit
ffe9cc87
authored
Sep 17, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 18, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added nsIURL::GetQuery implementation.
parent
e081b65a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
2 deletions
+29
-2
nsio.c
dlls/mshtml/nsio.c
+29
-2
No files found.
dlls/mshtml/nsio.c
View file @
ffe9cc87
...
...
@@ -2105,14 +2105,41 @@ static nsresult NSAPI nsURL_SetParam(nsIURL *iface, const nsACString *aParam)
static
nsresult
NSAPI
nsURL_GetQuery
(
nsIURL
*
iface
,
nsACString
*
aQuery
)
{
nsWineURI
*
This
=
NSURI_THIS
(
iface
);
URL_COMPONENTSW
url
=
{
sizeof
(
URL_COMPONENTSW
)};
WCHAR
*
ptr_end
,
*
ptr
;
char
*
query
;
int
len
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
aQuery
);
if
(
This
->
nsurl
)
return
nsIURL_GetQuery
(
This
->
nsurl
,
aQuery
);
FIXME
(
"default action not implemented
\n
"
);
return
NS_ERROR_NOT_IMPLEMENTED
;
url
.
dwExtraInfoLength
=
1
;
if
(
!
InternetCrackUrlW
(
This
->
wine_url
,
0
,
0
,
&
url
))
{
WARN
(
"InternetCrackUrlW failed: 0x%08x
\n
"
,
GetLastError
());
nsACString_SetData
(
aQuery
,
""
);
return
NS_OK
;
}
ptr_end
=
url
.
lpszExtraInfo
+
url
.
dwExtraInfoLength
;
for
(
ptr
=
url
.
lpszExtraInfo
;
ptr
<
ptr_end
;
ptr
++
)
{
if
(
*
ptr
==
'#'
)
break
;
}
ptr
=
url
.
lpszExtraInfo
;
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
ptr
,
ptr_end
-
ptr
,
NULL
,
0
,
NULL
,
NULL
);
query
=
heap_alloc
(
len
+
1
);
if
(
!
query
)
return
NS_ERROR_OUT_OF_MEMORY
;
WideCharToMultiByte
(
CP_ACP
,
0
,
ptr
,
ptr_end
-
ptr
,
query
,
len
,
NULL
,
NULL
);
query
[
len
]
=
0
;
nsACString_SetData
(
aQuery
,
query
);
TRACE
(
"ret %s
\n
"
,
debugstr_a
(
query
));
heap_free
(
query
);
return
NS_OK
;
}
static
nsresult
NSAPI
nsURL_SetQuery
(
nsIURL
*
iface
,
const
nsACString
*
aQuery
)
...
...
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