mirror of
git://repo.or.cz/tinycc.git
synced 2026-06-20 20:04:20 +08:00
tccpe.c: fix msvcrt.dll handle leak on Windows ARM64
pe_get_process_msvcrt_handle() used LoadLibraryA which increments the module reference count, but never called FreeLibrary to release it. Use GetModuleHandleA instead, which returns a handle to the already- loaded msvcrt.dll module without incrementing the reference count. This is the correct API for accessing system DLLs that are already mapped into the process address space.
This commit is contained in:
parent
4fb1e212c1
commit
6c5aac0da6
Loading…
Reference in New Issue
Block a user