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
f7b8eccd
Commit
f7b8eccd
authored
Jun 23, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use CreateURLMonikerEx2 for creating URL moniker.
parent
8646cd77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
26 deletions
+30
-26
nsio.c
dlls/mshtml/nsio.c
+30
-26
No files found.
dlls/mshtml/nsio.c
View file @
f7b8eccd
...
...
@@ -69,6 +69,32 @@ struct nsWineURI {
BOOL
is_doc_uri
;
};
static
BOOL
ensure_uri
(
nsWineURI
*
This
)
{
HRESULT
hres
;
if
(
This
->
uri
)
return
TRUE
;
if
(
This
->
uri_builder
)
{
hres
=
IUriBuilder_CreateUriSimple
(
This
->
uri_builder
,
0
,
0
,
&
This
->
uri
);
if
(
FAILED
(
hres
))
{
WARN
(
"CreateUriSimple failed: %08x
\n
"
,
hres
);
return
FALSE
;
}
return
TRUE
;
}
hres
=
CreateUri
(
This
->
wine_url
,
0
,
0
,
&
This
->
uri
);
if
(
FAILED
(
hres
))
{
WARN
(
"CreateUri failed: %08x
\n
"
,
hres
);
return
FALSE
;
}
return
TRUE
;
}
static
nsresult
create_uri
(
nsIURI
*
,
HTMLWindow
*
,
NSContainer
*
,
nsWineURI
**
);
static
const
char
*
debugstr_nsacstr
(
const
nsACString
*
nsstr
)
...
...
@@ -886,7 +912,7 @@ static nsresult async_open(nsChannel *This, HTMLWindow *window, BOOL is_doc_chan
IMoniker
*
mon
=
NULL
;
HRESULT
hres
;
hres
=
CreateURLMoniker
(
NULL
,
This
->
uri
->
wine_url
,
&
mon
);
hres
=
CreateURLMoniker
Ex2
(
NULL
,
This
->
uri
->
uri
,
&
mon
,
0
);
if
(
FAILED
(
hres
))
{
WARN
(
"CreateURLMoniker failed: %08x
\n
"
,
hres
);
return
NS_ERROR_UNEXPECTED
;
...
...
@@ -927,6 +953,9 @@ static nsresult NSAPI nsChannel_AsyncOpen(nsIHttpChannel *iface, nsIStreamListen
TRACE
(
"(%p)->(%p %p) opening %s
\n
"
,
This
,
aListener
,
aContext
,
debugstr_w
(
This
->
uri
->
wine_url
));
if
(
!
ensure_uri
(
This
->
uri
))
return
NS_ERROR_FAILURE
;
if
(
This
->
uri
->
is_doc_uri
)
{
window
=
get_channel_window
(
This
);
if
(
window
)
{
...
...
@@ -1500,31 +1529,6 @@ static const nsIHttpChannelInternalVtbl nsHttpChannelInternalVtbl = {
nsHttpChannelInternal_SetChannelIsForDownload
};
static
BOOL
ensure_uri
(
nsWineURI
*
This
)
{
HRESULT
hres
;
if
(
This
->
uri
)
return
TRUE
;
if
(
This
->
uri_builder
)
{
hres
=
IUriBuilder_CreateUriSimple
(
This
->
uri_builder
,
0
,
0
,
&
This
->
uri
);
if
(
FAILED
(
hres
))
{
WARN
(
"CreateUriSimple failed: %08x
\n
"
,
hres
);
return
FALSE
;
}
return
TRUE
;
}
hres
=
CreateUri
(
This
->
wine_url
,
0
,
0
,
&
This
->
uri
);
if
(
FAILED
(
hres
))
{
WARN
(
"CreateUri failed: %08x
\n
"
,
hres
);
return
FALSE
;
}
return
TRUE
;
}
static
void
invalidate_uri
(
nsWineURI
*
This
)
{
...
...
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