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

This commit is contained in:
Alexandre Julliard 2009-05-14 20:09:53 +02:00
parent aea6418ff0
commit 2a48ef1d09
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}