Commit e2359813 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

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

parent ab8302d8
...@@ -1812,7 +1812,9 @@ static HRESULT WINAPI OLEFontImpl_GetSizeMax( ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment