[0.4.12][WIN32K] Revert NtGdiStretchDIBitsInternal to Previous Logic (#3774)
authorJoachim Henze <Joachim.Henze@reactos.org>
Sat, 15 Jan 2022 00:29:15 +0000 (01:29 +0100)
committerJoachim Henze <Joachim.Henze@reactos.org>
Sat, 15 Jan 2022 00:29:15 +0000 (01:29 +0100)
commit3e322fb20c4d7122dd645803ad8b1e3f473c1066
tree55497483e887b104f32b778017751d89d0910ab3
parent33ac67fe4be1d0e50a767e83c9359ff0f8e5b4e5
[0.4.12][WIN32K] Revert NtGdiStretchDIBitsInternal to Previous Logic (#3774)

Fixes gdi32:dib / gdi32:bitmap tests and

CORE-16236 "SIMS graphics", which regressed by
SVN 51005 == git 2bbd8711a747e88759edcff139e64e348a79a5a6

Thanks to the patches author Doug Lyons.

It also fixed
CORE-16621 Kompozer 0.7.10 from rapps, exe does not show an icon, but does on 2k3sp2

fix picked from 0.4.15-dev-2850-g 847b037fe98ec14bdcea2cd9c3d356fecaa895cc
--------------
By taking the above, we also have to pick its addendum
[WIN32K] Fix 'use after free' in NtGdiStretchDIBitsInternal #4122 CORE-17861

0.4.15-dev-3420-g b538b9abb8c5bb834f855173fb77459456382d56
to avoid introducing another bug:
CORE-17861 MS Visual Studio 2010 Pro Fatal System Error 0x00000050
--------------
[WIN32K] Don't trust the BITMAPINFOHEADER size

This is not entirely correct yet, but less wrong than before and fixes
CORE-16031 Moo0 Audio Recorder - ReactOS icons are not displayed in the system tray
fix picked from 0.4.14-dev-848-g 53c9a6deaa61091f5bf681483cd3f36cc388c51b
win32ss/gdi/ntgdi/dibobj.c