Commit 2a48ef1d authored by Alexandre Julliard's avatar Alexandre Julliard

mlang: Return the correct count in IMLangFontLink_GetStrCodePages when aborting early.

parent aea6418f
......@@ -1939,7 +1939,7 @@ static HRESULT WINAPI fnIMLangFontLink_GetStrCodePages(
}
if (pdwCodePages) *pdwCodePages = cps;
if (pcchCodePages) *pcchCodePages = i;
if (pcchCodePages) *pcchCodePages = min( i + 1, cchSrc );
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