diff --git a/tccpe.c b/tccpe.c index f78f7cd4..012c3686 100644 --- a/tccpe.c +++ b/tccpe.c @@ -40,7 +40,7 @@ static HMODULE pe_get_process_msvcrt_handle(void) wait_sem(&pe_msvcrt_sem); dll = handle; if (!dll) { - dll = LoadLibraryA("msvcrt.dll"); + dll = GetModuleHandleA("msvcrt.dll"); if (dll) handle = dll; }