[NTDLL_VISTA]

- Avoid importing from kernel32. We're supposed to be... ntdll
CORE-13361

svn path=/trunk/; revision=74928
This commit is contained in:
Thomas Faber 2017-06-05 21:37:13 +00:00
parent d70eb21b6b
commit 605a7dfec9
2 changed files with 4 additions and 2 deletions

View file

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

View file

@ -7,6 +7,8 @@
#include <winreg.h>
#include <winuser.h>
#include <winwlx.h>
#include <ndk/rtltypes.h>
#include <ndk/umfuncs.h>
#define NDEBUG
#include <debug.h>
@ -25,7 +27,7 @@ DllMain(HANDLE hDll,
{
if (dwReason == DLL_PROCESS_ATTACH)
{
DisableThreadLibraryCalls(hDll);
LdrDisableThreadCalloutsForDll(hDll);
RtlpInitializeKeyedEvent();
}
else if (dwReason == DLL_PROCESS_DETACH)