From 5e93699a413e37284a01bee3fb17277b2538e76b Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Mon, 4 Sep 2017 07:30:37 +0200 Subject: [PATCH] nt: do not re-load ntdll.dll It's loaded into every process anyway. --- src/nt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nt.c b/src/nt.c index d3a1515..9d9f9d1 100644 --- a/src/nt.c +++ b/src/nt.c @@ -11,7 +11,7 @@ NTDLL_IMPORT_LIST(X) int nt_initialize(void) { HMODULE ntdll; - ntdll = LoadLibraryW(L"ntdll.dll"); + ntdll = GetModuleHandleW(L"ntdll.dll"); if (ntdll == NULL) return -1;