Paul Vriens : gdiplus: Convert lfFaceName from W to A, not the other way around.
Module: wine Branch: master Commit: 40f812c110b11406bd119c031990abf8ff4ab8c3 URL: http://source.winehq.org/git/wine.git/?a=commit;h=40f812c110b11406bd119c0319... Author: Paul Vriens <Paul.Vriens.Wine(a)gmail.com> Date: Thu Apr 23 21:24:54 2009 +0200 gdiplus: Convert lfFaceName from W to A, not the other way around. --- dlls/gdiplus/font.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/gdiplus/font.c b/dlls/gdiplus/font.c index f764d00..6454765 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;
participants (1)
-
Alexandre Julliard