[Bug 47999] Gif pictures stored in PE files are not loaded into HTML web pages via Res protocol

WineHQ Bugzilla wine-bugs at winehq.org
Fri Mar 20 22:04:32 CDT 2020


https://bugs.winehq.org/show_bug.cgi?id=47999

--- Comment #2 from Damjan Jovanovic <damjan.jov at gmail.com> ---
Wine does load the HTML resource correctly, but then attempts to load its
<image> from its res:// URL with resource type #0017 (RT_HTML), which fails:

0009:trace:mshtml:ResProtocol_Start trying to find resource type #0017, name
L"image7.gif"
0009:warn:mshtml:ResProtocol_Start Could not find resource

Looking through the executable's resources, we see image7.gif has resource type
0x83e (2110 decimal), and indeed, the source code says:

        // In the HTML File to locate resource in
        // your app add the file by name and in binary format
        // of type 2110 ( Magic Number for Microsoft)
        // HTML files are placed automatically under 
        // category of type HTML

Patching dlls/mshtml/protocol.c function ResProtocol_Start() to use resource
type 2110 when the default res_type fails, fixes the problem.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list