Commit 25d6abb9 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

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

Fixes a regression caused by 520040dc. Signed-off-by: 's avatarHuw Davies <huw@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 3e036997
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment