http://bugs.winehq.org/show_bug.cgi?id=27115
--- Comment #4 from Paul Chitescu paulc@voip.null.ro 2011-11-02 07:26:07 CDT --- (In reply to comment #3)
Created attachment 37254 [details] testcases + fix
Fixing by no longer providing the actual data to FindMimeFromData is a workaround that would break other programs that store images in resources or files with no distinctive extension.
Changelog: mshtml: Pass the data read from resource to FindMimeFromData Since the resources have arbitrary - often numeric - names, the actual data is the only way to detect image types.
The correct solution is to fix the FindMimeFromData detection. I guess the HTML we are talking about is so bad it's guessed as text/plain.