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
ae154d44
Commit
ae154d44
authored
Jul 26, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 27, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Fix handling res URLs with full path and number resource ID.
parent
bbdcccd3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
protocol.c
dlls/mshtml/protocol.c
+13
-5
No files found.
dlls/mshtml/protocol.c
View file @
ae154d44
...
@@ -588,7 +588,7 @@ static HRESULT WINAPI ResProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl,
...
@@ -588,7 +588,7 @@ static HRESULT WINAPI ResProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl,
}
}
url_dll
=
url
+
sizeof
(
wszRes
)
/
sizeof
(
wszRes
[
0
]);
url_dll
=
url
+
sizeof
(
wszRes
)
/
sizeof
(
wszRes
[
0
]);
if
(
!
(
url_file
=
strchrW
(
url_dll
,
'/'
)))
{
if
(
!
(
url_file
=
str
r
chrW
(
url_dll
,
'/'
)))
{
WARN
(
"wrong url: %s
\n
"
,
debugstr_w
(
url
));
WARN
(
"wrong url: %s
\n
"
,
debugstr_w
(
url
));
IInternetProtocolSink_ReportResult
(
pOIProtSink
,
MK_E_SYNTAX
,
0
,
NULL
);
IInternetProtocolSink_ReportResult
(
pOIProtSink
,
MK_E_SYNTAX
,
0
,
NULL
);
mshtml_free
(
url
);
mshtml_free
(
url
);
...
@@ -605,10 +605,18 @@ static HRESULT WINAPI ResProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl,
...
@@ -605,10 +605,18 @@ static HRESULT WINAPI ResProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl,
src
=
FindResourceW
(
hdll
,
url_file
,
(
LPCWSTR
)
RT_HTML
);
src
=
FindResourceW
(
hdll
,
url_file
,
(
LPCWSTR
)
RT_HTML
);
if
(
!
src
)
{
if
(
!
src
)
{
WARN
(
"Could not find resource
\n
"
);
LPWSTR
endpoint
=
NULL
;
IInternetProtocolSink_ReportResult
(
pOIProtSink
,
HRESULT_FROM_WIN32
(
GetLastError
()),
0
,
NULL
);
DWORD
file_id
=
strtolW
(
url_file
,
&
endpoint
,
10
);
mshtml_free
(
url
);
if
(
endpoint
==
url_file
+
strlenW
(
url_file
))
return
HRESULT_FROM_WIN32
(
GetLastError
());
src
=
FindResourceW
(
hdll
,
(
LPCWSTR
)
file_id
,
(
LPCWSTR
)
RT_HTML
);
if
(
!
src
)
{
WARN
(
"Could not find resource
\n
"
);
IInternetProtocolSink_ReportResult
(
pOIProtSink
,
HRESULT_FROM_WIN32
(
GetLastError
()),
0
,
NULL
);
mshtml_free
(
url
);
return
HRESULT_FROM_WIN32
(
GetLastError
());
}
}
}
if
(
This
->
data
)
{
if
(
This
->
data
)
{
...
...
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