https://bugs.winehq.org/show_bug.cgi?id=52301
Bug ID: 52301 Summary: Firefox installer shows black rectangles Product: Wine Version: 7.0-rc3 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: rpisl@seznam.cz Distribution: ---
Created attachment 71455 --> https://bugs.winehq.org/attachment.cgi?id=71455 Black rectangle in Firefox installer
Firefox 91 ESR 64bit installer shows black rectangles. It is just a minor issue not affecting functionality.
https://bugs.winehq.org/show_bug.cgi?id=52301
Roman Pišl rpisl@seznam.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |https://download-installer. | |cdn.mozilla.net/pub/firefox | |/releases/91.4.1esr/win64/e | |n-US/Firefox%20Setup%2091.4 | |.1esr.exe CC| |rpisl@seznam.cz Keywords| |download
https://bugs.winehq.org/show_bug.cgi?id=52301
--- Comment #1 from Roman Pišl rpisl@seznam.cz --- Created attachment 71456 --> https://bugs.winehq.org/attachment.cgi?id=71456 Black rectangle in Firefox installer #2
https://bugs.winehq.org/show_bug.cgi?id=52301
--- Comment #2 from Nikolay Sivov bunglehead@gmail.com --- It's using LoadImageW() with a full path to load some bmp files. Something goes wrong in there.
https://bugs.winehq.org/show_bug.cgi?id=52301
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |trivial
https://bugs.winehq.org/show_bug.cgi?id=52301
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1
--- Comment #3 from Nikolay Sivov bunglehead@gmail.com --- Confirming.
https://bugs.winehq.org/show_bug.cgi?id=52301
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
https://bugs.winehq.org/show_bug.cgi?id=52301
Bernhard Übelacker bernhardu@mailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bernhardu@mailbox.org
--- Comment #4 from Bernhard Übelacker bernhardu@mailbox.org --- The HBITMAP returned by LoadImage is set via SendMessage(STM_SETIMAGE).
But a moment later the same bitmap file is opened via OleLoadPicturePath followed by some image manipulation functions, and also set via SendMessage(STM_SETIMAGE).
Just as a test, if OleLoadPicturePath is modified to return failure the installer shows a picture.
I think the magic happens in this NSIS script: https://github.com/mozilla/gecko-dev/blob/dfc0dea63a16b73078a46b6ae49b2a626b...
https://bugs.winehq.org/show_bug.cgi?id=52301
--- Comment #5 from Roman Pišl rpisl@seznam.cz --- Created attachment 71522 --> https://bugs.winehq.org/attachment.cgi?id=71522 Fix
This fixes it.
https://bugs.winehq.org/show_bug.cgi?id=52301
--- Comment #6 from Bernhard Übelacker bernhardu@mailbox.org --- (In reply to Roman Pišl from comment #5)
This fixes it.
Confirming, this shows the bitmap instead of the black square. But one thing I noticed is that it shows it mirrored now, the yellow part is at the bottom, the red part at the top.
https://bugs.winehq.org/show_bug.cgi?id=52301
--- Comment #7 from Roman Pišl rpisl@seznam.cz --- (In reply to Bernhard Übelacker from comment #6)
(In reply to Roman Pišl from comment #5)
This fixes it.
Confirming, this shows the bitmap instead of the black square. But one thing I noticed is that it shows it mirrored now, the yellow part is at the bottom, the red part at the top.
Yes, it's rather a hack that avoids nsis passing lpBits==NULL into StretchDIBits.
https://bugs.winehq.org/show_bug.cgi?id=52301
--- Comment #8 from Bernhard Übelacker bernhardu@mailbox.org --- Still visible with wine-9.0-204-gd81c4ce1ba7.