mlang: Return the correct count  in IMLangFontLink_GetStrCodePages when aborting early.
diff --git a/dlls/mlang/mlang.c b/dlls/mlang/mlang.c
index d627cfd..5deb87b 100644
--- a/dlls/mlang/mlang.c
+++ b/dlls/mlang/mlang.c
@@ -1939,7 +1939,7 @@
     }
 
     if (pdwCodePages) *pdwCodePages = cps;
-    if (pcchCodePages) *pcchCodePages = i;
+    if (pcchCodePages) *pcchCodePages = min( i + 1, cchSrc );
     return S_OK;
 }