https://bugs.openldap.org/show_bug.cgi?id=10553
--- Comment #1 from Howard Chu hyc@openldap.org --- (In reply to christopher@gmerlin.de from comment #0)
Created attachment 1178 [details] Patch including ac041af3d
Compilation on windows fails because of pointer type errors. Commit ac041af3dd044d433e73432839cc323bffa357f3 does not fix all of those compilation failures:
- NtMapViewOfSection() expects void * in its 3rd argument.
- 7th expects SIZE_T *, but in mdb_env_copyfd0() a DWORD * is passed.
This patch looks incorrect. In particular, NtMapViewOfSection's 3rd argument must be the *address of* a `void *`. The current code in git correctly casts `(void **)&addr`. Casting to `(void *)` is incorrect.