oleaut32: Fix size calculation in OLEFontImpl_GetSizeMax for multi-byte locale environments.

This commit is contained in:
Rob Shearman 2008-02-27 16:48:13 +00:00 committed by Alexandre Julliard
parent ab8302d88f
commit e23598132f
1 changed files with 3 additions and 1 deletions

View File

@ -1812,7 +1812,9 @@ static HRESULT WINAPI OLEFontImpl_GetSizeMax(
pcbSize->u.LowPart += sizeof(BYTE); /* StrLength */ pcbSize->u.LowPart += sizeof(BYTE); /* StrLength */
if (this->description.lpstrName!=0) 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; return S_OK;
} }