ntdll: Pass the start of the string to compose_string().

Fixes a regression caused by 520040dc4a.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Huw Davies 2020-07-02 10:44:16 +01:00 committed by Alexandre Julliard
parent 3e0369970d
commit 25d6abb951
1 changed files with 1 additions and 1 deletions

View File

@ -557,7 +557,7 @@ DWORD ntdll_umbstowcs( const char *src, DWORD srclen, WCHAR *dst, DWORD dstlen )
}
reslen = dstlen - (dstend - dst);
#ifdef __APPLE__ /* work around broken Mac OS X filesystem that enforces NFD */
if (reslen && nfc_table) reslen = compose_string( nfc_table, dst, reslen );
if (reslen && nfc_table) reslen = compose_string( nfc_table, dst - reslen, reslen );
#endif
}
return reslen;