winsim: Fix filesystem access

Corrects a regression introduced in

    a2c10f6189

Change-Id: I9a27a6192ff6a9d1be7829d23d23dbf98b84feae
This commit is contained in:
Solomon Peachy 2025-10-16 17:59:51 -04:00
parent bfcd8270c9
commit 60ddb02573

View file

@ -66,8 +66,8 @@ static int win32_stat(const char *ospath, LPBY_HANDLE_FILE_INFORMATION lpInfo);
static unsigned short * strcpy_utf8utf16(unsigned short *buffer,
const unsigned char *utf8)
{
for (wchar_t *ucs = buffer; *ucs ; ucs++) {
ucschar_t cp;
ucschar_t cp = 0xffffffff;
for (wchar_t *ucs = buffer; cp ; ucs++) {
utf8 = utf8decode(utf8, &cp);
#ifdef UNICODE32
if (cp > 0x10000) {