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
56bb0286
Commit
56bb0286
authored
Jun 03, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 03, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use mime type reported by moniker if possible.
parent
42f96fce
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
0 deletions
+24
-0
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-0
navigate.c
dlls/mshtml/navigate.c
+16
-0
nsio.c
dlls/mshtml/nsio.c
+7
-0
No files found.
dlls/mshtml/mshtml_private.h
View file @
56bb0286
...
...
@@ -129,6 +129,7 @@ typedef struct {
nsIInterfaceRequestor
*
notif_callback
;
nsLoadFlags
load_flags
;
nsIURI
*
original_uri
;
char
*
content
;
}
nsChannel
;
typedef
struct
{
...
...
dlls/mshtml/navigate.c
View file @
56bb0286
...
...
@@ -268,8 +268,24 @@ static HRESULT WINAPI BindStatusCallback_OnProgress(IBindStatusCallback *iface,
ULONG
ulProgressMax
,
ULONG
ulStatusCode
,
LPCWSTR
szStatusText
)
{
BSCallback
*
This
=
STATUSCLB_THIS
(
iface
);
TRACE
(
"%p)->(%lu %lu %lu %s)
\n
"
,
This
,
ulProgress
,
ulProgressMax
,
ulStatusCode
,
debugstr_w
(
szStatusText
));
switch
(
ulStatusCode
)
{
case
BINDSTATUS_MIMETYPEAVAILABLE
:
{
int
len
;
if
(
!
This
->
nschannel
)
return
S_OK
;
HeapFree
(
GetProcessHeap
(),
0
,
This
->
nschannel
->
content
);
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
szStatusText
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
This
->
nschannel
->
content
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
WideCharToMultiByte
(
CP_ACP
,
0
,
szStatusText
,
-
1
,
This
->
nschannel
->
content
,
-
1
,
NULL
,
NULL
);
}
}
return
S_OK
;
}
...
...
dlls/mshtml/nsio.c
View file @
56bb0286
...
...
@@ -213,6 +213,7 @@ static nsrefcnt NSAPI nsChannel_Release(nsIHttpChannel *iface)
nsIInterfaceRequestor_Release
(
This
->
notif_callback
);
if
(
This
->
original_uri
)
nsIURI_Release
(
This
->
original_uri
);
HeapFree
(
GetProcessHeap
(),
0
,
This
->
content
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
@@ -465,6 +466,11 @@ static nsresult NSAPI nsChannel_GetContentType(nsIHttpChannel *iface, nsACString
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
aContentType
);
if
(
This
->
content
)
{
nsACString_Init
(
aContentType
,
This
->
content
);
return
S_OK
;
}
if
(
This
->
channel
)
return
nsIChannel_GetContentType
(
This
->
channel
,
aContentType
);
...
...
@@ -1450,6 +1456,7 @@ static nsresult NSAPI nsIOService_NewChannelFromURI(nsIIOService *iface, nsIURI
ret
->
load_group
=
NULL
;
ret
->
notif_callback
=
NULL
;
ret
->
load_flags
=
0
;
ret
->
content
=
NULL
;
nsIURI_AddRef
(
aURI
);
ret
->
original_uri
=
aURI
;
...
...
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