[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#8978) Fix mdb_env_open2() failing when getting handle for NTDLL.dll



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/