Commit 328ca0e0 authored by Alexandre Julliard's avatar Alexandre Julliard

gdi32/tests: Fix an uninitialized pointer check for Win64.

parent ec1b28ed
......@@ -1185,6 +1185,7 @@ static void test_GetOutlineTextMetrics(void)
HFONT hfont, hfont_old;
HDC hdc;
DWORD ret, otm_size;
LPSTR unset_ptr;
if (!is_font_installed("Arial"))
{
......@@ -1241,6 +1242,7 @@ static void test_GetOutlineTextMetrics(void)
/* ask about truncated data */
memset(otm, 0xAA, otm_size);
memset(&unset_ptr, 0xAA, sizeof(unset_ptr));
SetLastError(0xdeadbeef);
otm->otmSize = sizeof(*otm) - sizeof(LPSTR); /* just in case for Win9x compatibility */
ret = GetOutlineTextMetrics(hdc, otm->otmSize, otm);
......@@ -1253,7 +1255,7 @@ static void test_GetOutlineTextMetrics(void)
ok(otm->otmpFaceName == NULL, "expected NULL got %p\n", otm->otmpFaceName);
ok(otm->otmpStyleName == NULL, "expected NULL got %p\n", otm->otmpStyleName);
}
ok(otm->otmpFullName == (LPSTR)0xAAAAAAAA, "expected 0xAAAAAAAA got %p\n", otm->otmpFullName);
ok(otm->otmpFullName == unset_ptr, "expected %p got %p\n", unset_ptr, otm->otmpFullName);
HeapFree(GetProcessHeap(), 0, otm);
......
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