oleaut32/tests: Fix olefont tests compilation with __WINESRC__ defined.

This commit is contained in:
André Hentschel 2013-10-24 23:24:37 +02:00 committed by Alexandre Julliard
parent 4b9465f416
commit 1f31eb42cc
1 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ static void test_ifont_size(LONG lo_size, LONG hi_size,
LPVOID pvObj = NULL; LPVOID pvObj = NULL;
IFont* ifnt = NULL; IFont* ifnt = NULL;
HFONT hfont; HFONT hfont;
LOGFONT lf; LOGFONTA lf;
CY psize; CY psize;
HRESULT hres; HRESULT hres;
DWORD rtnval; DWORD rtnval;
@ -110,7 +110,7 @@ static void test_ifont_size(LONG lo_size, LONG hi_size,
hres = IFont_get_hFont (ifnt, &hfont); hres = IFont_get_hFont (ifnt, &hfont);
ok(hres == S_OK, "%s: IFont_get_hFont returns 0x%08x instead of S_OK.\n", ok(hres == S_OK, "%s: IFont_get_hFont returns 0x%08x instead of S_OK.\n",
test_name, hres); test_name, hres);
rtnval = GetObject (hfont, sizeof(LOGFONT), &lf); rtnval = GetObjectA(hfont, sizeof(LOGFONTA), &lf);
ok(rtnval > 0, "GetObject(hfont) failed\n"); ok(rtnval > 0, "GetObject(hfont) failed\n");
/* Since font scaling may encounter rounding errors, allow 1 pixel deviation. */ /* Since font scaling may encounter rounding errors, allow 1 pixel deviation. */