[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: (ITS#8978) Fix mdb_env_open2() failing when getting handle for NTDLL.dll
- To: openldap-its@OpenLDAP.org
- Subject: Re: (ITS#8978) Fix mdb_env_open2() failing when getting handle for NTDLL.dll
- From: hyc@symas.com
- Date: Sun, 17 Feb 2019 17:48:33 +0000
- Auto-submitted: auto-generated (OpenLDAP-ITS)
khng300@gmail.com wrote:
> Full_Name: Ka Ho Ng
> Version: mdb.master
> OS: Windows 10
> URL: ftp://ftp.openldap.org/incoming/Ka-Ho-Ng-190218.patch
> Submission from: (NULL) (2001:470:fa95:1300::1)
Thanks for the patch, committed to mdb.master
>
> Fix mdb_env_open2() failing when getting handle for NTDLL.dll
>
> Always call GetModuleHandleW() with Unicode string, as mdb_fopen() is
> calling CreateFileW() already. Otherwise GetModuleHandle() will fail with
> non-Unicode string.
>
> I, Ka Ho Ng, hereby place the following modifications to OpenLDAP Software (and
> only these modifications) into the public domain. Hence, these modifications may
> be freely used and/or redistributed for any purpose with or without attribution
> and/or other notice.
>
>
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/