gdiplus: Convert lfFaceName from W to A, not the other way around.

This commit is contained in:
Paul Vriens 2009-04-23 21:24:54 +02:00 committed by Alexandre Julliard
parent 7bf6a3030b
commit 40f812c110
1 changed files with 1 additions and 1 deletions

View File

@ -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;