Commit 0c63f40b authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

gdi32/tests: Fix metafile tests compilation with __WINESRC__ defined.

parent c5807283
......@@ -2718,7 +2718,7 @@ static HENHMETAFILE create_converted_emf(const METAFILEPICT *mfp)
UINT size;
LPBYTE pBits;
hdcMf = CreateMetaFile(NULL);
hdcMf = CreateMetaFileA(NULL);
ok(hdcMf != NULL, "CreateMetaFile failed with error %d\n", GetLastError());
ret = LineTo(hdcMf, (INT)LINE_X, (INT)LINE_Y);
ok(ret, "LineTo failed with error %d\n", GetLastError());
......@@ -2898,7 +2898,7 @@ static void test_SetWinMetaFileBits(void)
HDC dc;
LONG diffx, diffy;
wmfDC = CreateMetaFile(NULL);
wmfDC = CreateMetaFileA(NULL);
ok(wmfDC != NULL, "CreateMetaFile failed\n");
if (!wmfDC) return;
......@@ -3245,7 +3245,7 @@ static void test_gdiis(void)
HMODULE hgdi32;
/* resolve all the functions */
hgdi32 = GetModuleHandle("gdi32");
hgdi32 = GetModuleHandleA("gdi32.dll");
pGdiIsMetaPrintDC = (void*) GetProcAddress(hgdi32, "GdiIsMetaPrintDC");
pGdiIsMetaFileDC = (void*) GetProcAddress(hgdi32, "GdiIsMetaFileDC");
pGdiIsPlayMetafileDC = (void*) GetProcAddress(hgdi32, "GdiIsPlayMetafileDC");
......@@ -3262,7 +3262,7 @@ static void test_gdiis(void)
ok(!pGdiIsPlayMetafileDC(NULL), "isplaymetafile with NULL parameter\n");
/* try with a metafile */
hmfDC = CreateMetaFile(NULL);
hmfDC = CreateMetaFileA(NULL);
ok(!pGdiIsMetaPrintDC(hmfDC), "ismetaprint on metafile\n");
ok(pGdiIsMetaFileDC(hmfDC), "ismetafile on metafile\n");
ok(!pGdiIsPlayMetafileDC(hmfDC), "isplaymetafile on metafile\n");
......
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