From 42d50ca091656641cf973de2dd738cda0bbd752d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Mon, 14 Nov 2016 18:57:18 +0000 Subject: [PATCH] [LSASRV]: Revert part of r73233: GetModuleHandle(NULL) retrieves the exe module in which the dll is loaded, not the dll instance itself. (an alternative might be to use the hinstance from DllMain...). Thanks Thomas for having pointed this to me. svn path=/trunk/; revision=73234 --- reactos/dll/win32/lsasrv/lookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/dll/win32/lsasrv/lookup.c b/reactos/dll/win32/lsasrv/lookup.c index e1368393b6c..19d3c56d3d0 100644 --- a/reactos/dll/win32/lsasrv/lookup.c +++ b/reactos/dll/win32/lsasrv/lookup.c @@ -186,7 +186,7 @@ LsapInitSids(VOID) InitializeListHead(&WellKnownSidListHead); - hInstance = GetModuleHandleW(NULL); + hInstance = GetModuleHandleW(L"lsasrv.dll"); /* NT Authority */