From 605a7dfec9cbda38c8d16aad1d64926281194581 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Mon, 5 Jun 2017 21:37:13 +0000 Subject: [PATCH] [NTDLL_VISTA] - Avoid importing from kernel32. We're supposed to be... ntdll CORE-13361 svn path=/trunk/; revision=74928 --- reactos/dll/win32/ntdll_vista/CMakeLists.txt | 2 +- reactos/dll/win32/ntdll_vista/DllMain.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/reactos/dll/win32/ntdll_vista/CMakeLists.txt b/reactos/dll/win32/ntdll_vista/CMakeLists.txt index 7f235ad578b..3a73db8df8c 100644 --- a/reactos/dll/win32/ntdll_vista/CMakeLists.txt +++ b/reactos/dll/win32/ntdll_vista/CMakeLists.txt @@ -15,6 +15,6 @@ list(APPEND SOURCE add_library(ntdll_vista SHARED ${SOURCE}) set_module_type(ntdll_vista win32dll ENTRYPOINT DllMain 12) -add_importlibs(ntdll_vista ntdll kernel32) +add_importlibs(ntdll_vista ntdll) add_dependencies(ntdll_vista psdk) add_cd_file(TARGET ntdll_vista DESTINATION reactos/system32 FOR all) diff --git a/reactos/dll/win32/ntdll_vista/DllMain.c b/reactos/dll/win32/ntdll_vista/DllMain.c index a7d5a08c001..9266b525aa4 100644 --- a/reactos/dll/win32/ntdll_vista/DllMain.c +++ b/reactos/dll/win32/ntdll_vista/DllMain.c @@ -7,6 +7,8 @@ #include #include #include +#include +#include #define NDEBUG #include @@ -25,7 +27,7 @@ DllMain(HANDLE hDll, { if (dwReason == DLL_PROCESS_ATTACH) { - DisableThreadLibraryCalls(hDll); + LdrDisableThreadCalloutsForDll(hDll); RtlpInitializeKeyedEvent(); } else if (dwReason == DLL_PROCESS_DETACH) -- 2.17.1