mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-02 04:59:39 -05:00
ITS#8978 Fix mdb_env_open2() failing when getting handle for NTDLL.dll
Always call GetModuleHandleW() with Unicode string, as mdb_fopen() is calling CreateFileW() already.
This commit is contained in:
parent
4f9fe9fcea
commit
22af3288c7
1 changed files with 1 additions and 1 deletions
|
|
@ -4741,7 +4741,7 @@ mdb_env_open2(MDB_env *env, int prev)
|
|||
env->me_pidquery = PROCESS_QUERY_INFORMATION;
|
||||
/* Grab functions we need from NTDLL */
|
||||
if (!NtCreateSection) {
|
||||
HMODULE h = GetModuleHandle("NTDLL.DLL");
|
||||
HMODULE h = GetModuleHandleW(L"NTDLL.DLL");
|
||||
if (!h)
|
||||
return MDB_PROBLEM;
|
||||
NtClose = (NtCloseFunc *)GetProcAddress(h, "NtClose");
|
||||
|
|
|
|||
Loading…
Reference in a new issue