http://bugs.winehq.org/show_bug.cgi?id=33586
Bug #: 33586 Summary: Incorrect ScaleWindowExtEx() usage crashes wine Product: Wine Version: 1.5.30 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdi32 AssignedTo: wine-bugs@winehq.org ReportedBy: t.artem@mailcity.com Classification: Unclassified
#include <windows.h> int main() { HDC dc = CreateCompatibleDC (NULL); SetLayout (dc, LAYOUT_RTL); ScaleWindowExtEx (dc, -2147483647 - 1, -1, 1, 1, NULL); }
winegcc 1.c -lgdi32
./1
Backtrace: =>0 0x7ed145f4 nulldrv_ScaleWindowExtEx+0x64() in gdi32 (0x0032fd88) 1 0x7ed151bb ScaleWindowExtEx+0x6a() in gdi32 (0x0032fdc8) 2 0x7eff7630 main+0x6b() in a.out (0x0032fe08)