Rob Shearman : oleaut32: Fix size calculation in OLEFontImpl_GetSizeMax for multi-byte locale environments .
Module: wine Branch: master Commit: e23598132f1591fc900b5a8e0494153c8549958f URL: http://source.winehq.org/git/wine.git/?a=commit;h=e23598132f1591fc900b5a8e04... Author: Rob Shearman <rob(a)codeweavers.com> Date: Wed Feb 27 16:48:13 2008 +0000 oleaut32: Fix size calculation in OLEFontImpl_GetSizeMax for multi-byte locale environments. --- dlls/oleaut32/olefont.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/dlls/oleaut32/olefont.c b/dlls/oleaut32/olefont.c index 9a76992..fb7b40b 100644 --- a/dlls/oleaut32/olefont.c +++ b/dlls/oleaut32/olefont.c @@ -1812,7 +1812,9 @@ static HRESULT WINAPI OLEFontImpl_GetSizeMax( pcbSize->u.LowPart += sizeof(BYTE); /* StrLength */ if (this->description.lpstrName!=0) - pcbSize->u.LowPart += lstrlenW(this->description.lpstrName); + pcbSize->u.LowPart += WideCharToMultiByte( CP_ACP, 0, this->description.lpstrName, + strlenW(this->description.lpstrName), + NULL, 0, NULL, NULL ); return S_OK; }
participants (1)
-
Alexandre Julliard