Commit 029bac07 authored by Fabian Maurer's avatar Fabian Maurer Committed by Alexandre Julliard

user32/tests: Remove DrawTextEx tests that overrun stack variable.

Fixes regression introduced by 35c8f15b Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55215
parent 54e38a95
......@@ -521,10 +521,6 @@ static void test_DrawTextCalcRect(void)
}
/* When passing invalid DC, other parameters must be ignored - no crashes on invalid pointers */
SetLastError(0xdeadbeef);
textheight = DrawTextExW((HDC)0xdeadbeef, emptystringW, 100000, (LPRECT)0xdeadbeef, 0, 0);
ok(textheight == 0, "Got textheight from DrawTextExW\n");
ok(GetLastError() == 0xdeadbeef,"Got error %lu\n", GetLastError());
SetLastError(0xdeadbeef);
textheight = DrawTextExW((HDC)0xdeadbeef, (LPWSTR)0xdeadbeef, 100000, &rect, 0, 0);
......@@ -537,11 +533,6 @@ static void test_DrawTextCalcRect(void)
ok(GetLastError() == 0xdeadbeef,"Got error %lu\n", GetLastError());
SetLastError(0xdeadbeef);
textheight = DrawTextExA((HDC)0xdeadbeef, emptystring, 100000, (LPRECT)0xdeadbeef, 0, 0);
ok(textheight == 0, "Got textheight from DrawTextExA\n");
ok(GetLastError() == ERROR_INVALID_PARAMETER || GetLastError() == ERROR_INVALID_HANDLE,"Got error %lu\n", GetLastError());
SetLastError(0xdeadbeef);
textheight = DrawTextExA((HDC)0xdeadbeef, 0, -1, (LPRECT)0xdeadbeef, DT_CALCRECT, 0);
ok(textheight == 0, "Got textheight from DrawTextExA\n");
ok(GetLastError() == ERROR_INVALID_PARAMETER || GetLastError() == ERROR_INVALID_HANDLE,"Got error %lu\n", GetLastError());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment