nt: do not re-load ntdll.dll

It's loaded into every process anyway.
This commit is contained in:
Bert Belder 2017-09-04 07:30:37 +02:00
parent 52dbb3f2a2
commit 5e93699a41

View File

@ -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;