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
0c11b482
Commit
0c11b482
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 OnStartURILoad.
parent
ca595cd7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
4 deletions
+26
-4
nsembed.c
dlls/mshtml/nsembed.c
+26
-4
No files found.
dlls/mshtml/nsembed.c
View file @
0c11b482
...
...
@@ -771,13 +771,35 @@ static nsresult NSAPI nsURIContentListener_OnStartURIOpen(nsIURIContentListener
nsACString_Finish
(
&
spec_str
);
nsres
=
nsIURI_QueryInterface
(
aURI
,
&
IID_nsIWineURI
,
(
void
**
)
&
wine_uri
);
if
(
NS_SUCCEEDED
(
nsres
))
{
nsIWineURI_SetNSContainer
(
wine_uri
,
This
);
nsIWineURI_Release
(
wine_uri
);
}
else
{
if
(
NS_FAILED
(
nsres
))
{
WARN
(
"Could not get nsIWineURI interface: %08lx
\n
"
,
nsres
);
return
NS_ERROR_NOT_IMPLEMENTED
;
}
nsIWineURI_SetNSContainer
(
wine_uri
,
This
);
if
(
This
->
bscallback
&&
This
->
bscallback
->
mon
)
{
LPWSTR
url
;
HRESULT
hres
;
hres
=
IMoniker_GetDisplayName
(
This
->
bscallback
->
mon
,
NULL
,
0
,
&
url
);
if
(
SUCCEEDED
(
hres
))
{
IMoniker
*
mon
=
NULL
;
hres
=
CreateURLMoniker
(
NULL
,
url
,
&
mon
);
if
(
SUCCEEDED
(
hres
))
{
nsIWineURI_SetMoniker
(
wine_uri
,
mon
);
IMoniker_Release
(
mon
);
}
else
{
WARN
(
"CreateURLMoniker failed: %08lx
\n
"
,
hres
);
}
}
else
{
WARN
(
"GetDisplayName failed: %08lx
\n
"
,
hres
);
}
}
nsIWineURI_Release
(
wine_uri
);
return
NS_ERROR_NOT_IMPLEMENTED
;
}
...
...
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