From a3a1fa8931da5e9e5f2e47e83d854a36a7737952 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 26 Nov 2020 17:26:05 +0100 Subject: api: delay load remaining dlls to work around forwarder gotchas RtlGenRandom forwards to cryptbase.dll, which is not in KnownDlls. Therefore it's not a good idea to link to advapi32.dll at link time. How many other gotchas of unusual forwarded functions are there? I don't really want to find out. Therefore, delay load everything else. Signed-off-by: Jason A. Donenfeld --- api/api.vcxproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/api.vcxproj b/api/api.vcxproj index 214ba6c..5e7d462 100644 --- a/api/api.vcxproj +++ b/api/api.vcxproj @@ -117,7 +117,7 @@ _M_ARM64=1;%(PreprocessorDefinitions) - bcrypt.dll;cfgmgr32.dll;iphlpapi.dll;nci.dll;version.dll + advapi32.dll;bcrypt.dll;crypt32.dll;cfgmgr32.dll;iphlpapi.dll;ole32.dll;nci.dll;setupapi.dll;shell32.dll;shlwapi.dll;version.dll Bcrypt.lib;Crypt32.lib;Cfgmgr32.lib;Iphlpapi.lib;$(IntDir)nci.lib;ntdll.lib;Setupapi.lib;shlwapi.lib;version.lib;%(AdditionalDependencies) exports.def Windows @@ -209,4 +209,4 @@ - \ No newline at end of file + -- cgit v1.2.3-59-g8ed1b