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
47c91d4d
Commit
47c91d4d
authored
Sep 29, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 01, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use GetWineURL in before_async_open.
parent
2826a0f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
24 deletions
+8
-24
nsio.c
dlls/mshtml/nsio.c
+8
-24
No files found.
dlls/mshtml/nsio.c
View file @
47c91d4d
...
...
@@ -93,13 +93,20 @@ static BOOL exec_shldocvw_67(HTMLDocument *doc, LPCWSTR url)
return
TRUE
;
}
static
BOOL
handle_uri
(
NSContainer
*
container
,
nsChannel
*
channel
,
LPCWSTR
uri
)
static
BOOL
before_async_open
(
nsChannel
*
channel
,
NSContainer
*
container
)
{
IServiceProvider
*
service_provider
;
HTMLDocument
*
doc
=
container
->
doc
;
DWORD
hlnf
=
0
;
LPCWSTR
uri
;
HRESULT
hres
;
nsIWineURI_GetWineURL
(
channel
->
uri
,
&
uri
);
if
(
!
uri
)
{
ERR
(
"GetWineURL returned NULL
\n
"
);
return
TRUE
;
}
if
(
!
doc
)
{
NSContainer
*
container_iter
=
container
;
...
...
@@ -131,29 +138,6 @@ static BOOL handle_uri(NSContainer *container, nsChannel *channel, LPCWSTR uri)
return
TRUE
;
}
static
BOOL
before_async_open
(
nsChannel
*
channel
,
NSContainer
*
container
)
{
nsACString
uri_str
;
const
char
*
uria
;
LPWSTR
uri
;
DWORD
len
;
BOOL
ret
;
nsACString_Init
(
&
uri_str
,
NULL
);
nsIWineURI_GetSpec
(
channel
->
uri
,
&
uri_str
);
nsACString_GetData
(
&
uri_str
,
&
uria
,
NULL
);
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
uria
,
-
1
,
NULL
,
0
);
uri
=
mshtml_alloc
(
len
*
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
uria
,
-
1
,
uri
,
len
);
nsACString_Finish
(
&
uri_str
);
ret
=
handle_uri
(
container
,
channel
,
uri
);
mshtml_free
(
uri
);
return
ret
;
}
#define NSCHANNEL_THIS(iface) DEFINE_THIS(nsChannel, HttpChannel, iface)
static
nsresult
NSAPI
nsChannel_QueryInterface
(
nsIHttpChannel
*
iface
,
nsIIDRef
riid
,
nsQIResult
result
)
...
...
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