From: Hermès Bélusca-Maïto Date: Mon, 14 Nov 2016 18:57:18 +0000 (+0000) Subject: [LSASRV]: Revert part of r73233: GetModuleHandle(NULL) retrieves the exe module in... X-Git-Tag: ReactOS-0.4.4-FOSDEM2017~301 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=42d50ca091656641cf973de2dd738cda0bbd752d [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 --- 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 */