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
a5d47bab
Commit
a5d47bab
authored
Apr 10, 2008
by
Rob Shearman
Committed by
Alexandre Julliard
Apr 11, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Support parsing the resource type in the res:// protocol.
parent
21b9a50e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
6 deletions
+19
-6
protocol.c
dlls/mshtml/protocol.c
+19
-6
No files found.
dlls/mshtml/protocol.c
View file @
a5d47bab
...
...
@@ -593,7 +593,7 @@ static HRESULT WINAPI ResProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl,
ResProtocol
*
This
=
PROTOCOL_THIS
(
iface
);
DWORD
grfBINDF
=
0
,
len
;
BINDINFO
bindinfo
;
LPWSTR
url_dll
,
url_file
,
url
,
mime
;
LPWSTR
url_dll
,
url_file
,
url
,
mime
,
res_type
=
(
LPWSTR
)
RT_HTML
;
HMODULE
hdll
;
HRSRC
src
;
HRESULT
hres
;
...
...
@@ -636,13 +636,26 @@ static HRESULT WINAPI ResProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl,
*
url_file
++
=
0
;
hdll
=
LoadLibraryExW
(
url_dll
,
NULL
,
LOAD_LIBRARY_AS_DATAFILE
);
if
(
!
hdll
)
{
WARN
(
"Could not open dll: %s
\n
"
,
debugstr_w
(
url_dll
));
IInternetProtocolSink_ReportResult
(
pOIProtSink
,
HRESULT_FROM_WIN32
(
GetLastError
()),
0
,
NULL
);
heap_free
(
url
);
return
HRESULT_FROM_WIN32
(
GetLastError
());
if
(
!
(
res_type
=
strrchrW
(
url_dll
,
'/'
)))
{
WARN
(
"Could not open dll: %s
\n
"
,
debugstr_w
(
url_dll
));
IInternetProtocolSink_ReportResult
(
pOIProtSink
,
HRESULT_FROM_WIN32
(
GetLastError
()),
0
,
NULL
);
heap_free
(
url
);
return
HRESULT_FROM_WIN32
(
GetLastError
());
}
*
res_type
++
=
0
;
hdll
=
LoadLibraryExW
(
url_dll
,
NULL
,
LOAD_LIBRARY_AS_DATAFILE
);
if
(
!
hdll
)
{
WARN
(
"Could not open dll: %s
\n
"
,
debugstr_w
(
url_dll
));
IInternetProtocolSink_ReportResult
(
pOIProtSink
,
HRESULT_FROM_WIN32
(
GetLastError
()),
0
,
NULL
);
heap_free
(
url
);
return
HRESULT_FROM_WIN32
(
GetLastError
());
}
}
src
=
FindResourceW
(
hdll
,
url_file
,
(
LPCWSTR
)
RT_HTML
);
TRACE
(
"trying to find resource type %s, name %s
\n
"
,
debugstr_w
(
res_type
),
debugstr_w
(
url_file
));
src
=
FindResourceW
(
hdll
,
url_file
,
res_type
);
if
(
!
src
)
{
LPWSTR
endpoint
=
NULL
;
DWORD
file_id
=
strtolW
(
url_file
,
&
endpoint
,
10
);
...
...
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