gdiplus: Return the correct result in GdipCreateFontFromLogfontA.
This commit is contained in:
parent
73e23b823a
commit
7bf6a3030b
|
@ -224,9 +224,7 @@ GpStatus WINGDIPAPI GdipCreateFontFromLogfontA(HDC hdc,
|
||||||
if(!MultiByteToWideChar(CP_ACP, 0, lfa->lfFaceName, -1, lfw.lfFaceName, LF_FACESIZE))
|
if(!MultiByteToWideChar(CP_ACP, 0, lfa->lfFaceName, -1, lfw.lfFaceName, LF_FACESIZE))
|
||||||
return GenericError;
|
return GenericError;
|
||||||
|
|
||||||
GdipCreateFontFromLogfontW(hdc, &lfw, font);
|
return GdipCreateFontFromLogfontW(hdc, &lfw, font);
|
||||||
|
|
||||||
return Ok;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
|
|
Loading…
Reference in New Issue