mirror of
https://github.com/reactos/wine.git
synced 2025-02-17 19:39:00 +00:00
gdiplus: Convert lfFaceName from W to A, not the other way around.
This commit is contained in:
parent
7bf6a3030b
commit
40f812c110
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user