mlang: Return the correct count in IMLangFontLink_GetStrCodePages when aborting early.
This commit is contained in:
parent
aea6418ff0
commit
2a48ef1d09
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue