[PATCH 1/2] kernel32/locale: Set whether we used the default char when using Unix codepage.

Gabriel Ivăncescu gabrielopcode at gmail.com
Wed Sep 4 09:27:23 CDT 2019


Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
---
 dlls/kernel32/locale.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/kernel32/locale.c b/dlls/kernel32/locale.c
index b546cb0..2698b3d 100644
--- a/dlls/kernel32/locale.c
+++ b/dlls/kernel32/locale.c
@@ -2726,6 +2726,7 @@ INT WINAPI WideCharToMultiByte( UINT page, DWORD flags, LPCWSTR src, INT srclen,
         {
             ret = wine_cp_wcstombs( unix_cptable, flags, src, srclen, dst, dstlen,
                                     defchar, used ? &used_tmp : NULL );
+            if (used) *used = used_tmp;
             break;
         }
         /* fall through */
-- 
2.21.0




More information about the wine-devel mailing list