=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: oleaut32/tests: Fix olefont tests compilation with __WINESRC__ defined.

Alexandre Julliard julliard at winehq.org
Mon Oct 28 15:13:03 CDT 2013


Module: wine
Branch: master
Commit: 1f31eb42cc8b1ef68aee8c232e91a51b84832b5b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1f31eb42cc8b1ef68aee8c232e91a51b84832b5b

Author: André Hentschel <nerv at dawncrow.de>
Date:   Thu Oct 24 23:24:37 2013 +0200

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

---

 dlls/oleaut32/tests/olefont.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

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




More information about the wine-cvs mailing list