Fixed all the warnings and reverted a change to 86box.c that was not supposed to be committed.

This commit is contained in:
OBattler
2025-06-24 05:13:05 +02:00
parent d5a8a65fdd
commit 6a8eaf507c
4 changed files with 16 additions and 13 deletions

View File

@@ -776,8 +776,8 @@ plat_set_thread_name(void *thread, const char *name)
if (pSetThreadDescription) {
size_t len = strlen(name) + 1;
wchar_t wname[len + 1];
mbstowcs(wname, name, len);
wchar_t wname[2048];
mbstowcs(wname, name, (len >= 1024) ? 1024 : len);
pSetThreadDescription(thread ? (HANDLE) thread : GetCurrentThread(), wname);
}
#else