10 Oct
2024
10 Oct
'24
1:09 p.m.
Piotr Caban (@piotr) commented about dlls/msvcrt/tests/locale.c:
+ char *ret; + + ret = setlocale(LC_ALL, NULL); + ok(!strcmp(ret, "C"), "expected ret=C, but received ret=%s\n", ret); + + ret = setlocale(LC_ALL, ""); + ok(strcmp(ret, "Invariant Language_Invariant Country.0"), "expected something different, but received ret=%s\n", ret); + + _endthread(); +} + +static void test_thread_setlocale(void) +{ + HANDLE hThread; + + hThread = (HANDLE)_beginthread(test_thread_setlocale_func, 0, NULL); Please use `_beginthreadex` here. Otherwise the thread handle will be closed when the thread finishes.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/6644#note_84576