Re: [PATCH 2/2] Cygwin: Drop use of loadlib.h in regtool

2022-02-28 Thread Corinna Vinschen
On Feb 26 16:40, Jon Turney wrote: > Link directly with RegDeleteKeyExW(), available since Vista. > > (It's unclear the LoadLibrary wrapper was ever doing anything useful > here, as (i) DLL lookup in PATH was avoided as advapi32 is already > loaded into the process, and (ii) advapi32 is a 'known D

[PATCH 2/2] Cygwin: Drop use of loadlib.h in regtool

2022-02-26 Thread Jon Turney
Link directly with RegDeleteKeyExW(), available since Vista. (It's unclear the LoadLibrary wrapper was ever doing anything useful here, as (i) DLL lookup in PATH was avoided as advapi32 is already loaded into the process, and (ii) advapi32 is a 'known DLL' which is only ever loaded from system dir