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
f1757623
Commit
f1757623
authored
Aug 09, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Set nsURI's moniker in NewURI.
parent
0c11b482
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
nsio.c
dlls/mshtml/nsio.c
+22
-0
No files found.
dlls/mshtml/nsio.c
View file @
f1757623
...
...
@@ -1608,6 +1608,7 @@ static nsresult NSAPI nsIOService_NewURI(nsIIOService *iface, const nsACString *
NSContainer
*
nscontainer
=
NULL
;
nsIURI
*
uri
=
NULL
;
PRBool
is_javascript
=
FALSE
;
IMoniker
*
base_mon
=
NULL
;
nsresult
nsres
;
nsACString_GetData
(
aSpec
,
&
spec
,
NULL
);
...
...
@@ -1651,6 +1652,7 @@ static nsresult NSAPI nsIOService_NewURI(nsIIOService *iface, const nsACString *
nsres
=
nsIURI_QueryInterface
(
aBaseURI
,
&
IID_nsIWineURI
,
(
void
**
)
&
wine_uri
);
if
(
NS_SUCCEEDED
(
nsres
))
{
nsIWineURI_GetNSContainer
(
wine_uri
,
&
nscontainer
);
nsIWineURI_GetMoniker
(
wine_uri
,
&
base_mon
);
nsIWineURI_Release
(
wine_uri
);
}
else
{
ERR
(
"Could not get nsIWineURI: %08lx
\n
"
,
nsres
);
...
...
@@ -1662,6 +1664,26 @@ static nsresult NSAPI nsIOService_NewURI(nsIIOService *iface, const nsACString *
if
(
nscontainer
)
nsIWebBrowserChrome_Release
(
NSWBCHROME
(
nscontainer
));
if
(
base_mon
)
{
LPWSTR
url
;
IMoniker
*
mon
;
DWORD
len
;
HRESULT
hres
;
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
spec
,
-
1
,
NULL
,
0
);
url
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
spec
,
-
1
,
url
,
-
1
);
hres
=
CreateURLMoniker
(
base_mon
,
url
,
&
mon
);
HeapFree
(
GetProcessHeap
(),
0
,
url
);
if
(
SUCCEEDED
(
hres
))
{
nsIWineURI_SetMoniker
((
nsIWineURI
*
)
*
_retval
,
mon
);
IMoniker_Release
(
mon
);
}
else
{
WARN
(
"CreateURLMoniker failed: %08lx
\n
"
,
hres
);
}
}
return
nsres
;
}
...
...
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