From 40f812c110b11406bd119c031990abf8ff4ab8c3 Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Thu, 23 Apr 2009 21:24:54 +0200 Subject: [PATCH] gdiplus: Convert lfFaceName from W to A, not the other way around. --- dlls/gdiplus/font.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/gdiplus/font.c b/dlls/gdiplus/font.c index f764d003202..6454765d85c 100644 --- a/dlls/gdiplus/font.c +++ b/dlls/gdiplus/font.c @@ -388,7 +388,7 @@ GpStatus WINGDIPAPI GdipGetLogFontA(GpFont *font, GpGraphics *graphics, memcpy(lfa, &lfw, FIELD_OFFSET(LOGFONTA,lfFaceName) ); - if(!MultiByteToWideChar(CP_ACP, 0, lfa->lfFaceName, -1, lfw.lfFaceName, LF_FACESIZE)) + if(!WideCharToMultiByte(CP_ACP, 0, lfw.lfFaceName, -1, lfa->lfFaceName, LF_FACESIZE, NULL, NULL)) return GenericError; return Ok; -- 2.11.4.GIT