Sweden-Number/dlls/msvcrt
Arkadiusz Hiler 7435ca8545 msvcrt: Make UCRT _beginthread[ex]() hold the DLL reference.
MSVCRT's _beginthread[ex]() doesn't exhibit the same behavior and using
ThreadExit() does leak the reference.

FreeLibraryAndExit() has to be used because the DLL may be the only user
of the given CRT.

This fixes Baldur's Gate 3 crashing shortly after launch.

Signed-off-by: Arkadiusz Hiler <ahiler@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-05 21:52:23 +02:00
..
tests msvcrt/tests: Add CREATE_SUSPENDED test for _beginthreadex(). 2021-05-04 21:33:15 +02:00
Makefile.in
bnum.h
console.c msvcrt: Lazily initialize console handles. 2021-03-12 17:28:26 +01:00
cpp.c
cppexcept.h
crt_gccmain.c
crt_main.c
crt_winmain.c
crt_wmain.c
crt_wwinmain.c
ctype.c
cxx.h msvcrt: Add helpers for creating base class RTTI. 2021-04-07 22:36:11 +02:00
data.c
dir.c
environ.c
errno.c
except.c
except_arm.c
except_arm64.c
except_i386.c
except_x86_64.c
exit.c
file.c msvcrt: Add __stdio_common_vfprintf_p and __stdio_common_vfwprintf_p. 2021-04-19 20:08:48 +02:00
heap.c
iob.c
locale.c
lock.c
main.c msvcrt: Lazily initialize console handles. 2021-03-12 17:28:26 +01:00
math.c msvcrt: Fix round implementation when 24-bit precision is used. 2021-05-03 21:05:46 +02:00
mathf.c
mbcs.c
misc.c
msvcrt.h msvcrt: Make UCRT _beginthread[ex]() hold the DLL reference. 2021-05-05 21:52:23 +02:00
msvcrt.spec
mtdll.h
onexit.c
printf.h
process.c
rsrc.rc
scanf.c
scanf.h
scheduler.c
string.c
thread.c msvcrt: Make UCRT _beginthread[ex]() hold the DLL reference. 2021-05-05 21:52:23 +02:00
time.c
undname.c msvcrt: Fix _unDName crash when demangling class function pointer. 2021-04-30 22:59:50 +02:00
unixlib.c msvcrt: Import round implementation from musl. 2021-04-29 23:37:46 +02:00
unixlib.h msvcrt: Import round implementation from musl. 2021-04-29 23:37:46 +02:00
wcs.c msvcrt: Update source pointer in wcsrtombs in C locale. 2021-03-02 17:56:20 +01:00