aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-11-26 17:26:05 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2020-11-27 14:52:03 +0100
commita3a1fa8931da5e9e5f2e47e83d854a36a7737952 (patch)
treee4c312dc85424c3641d48be4cf61e7fdece36027
parentapi: skip notifying driver when there are no receive packets yet (diff)
downloadwintun-0.9.2.tar.xz
wintun-0.9.2.zip
api: delay load remaining dlls to work around forwarder gotchas0.9.2
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 <Jason@zx2c4.com>
-rw-r--r--api/api.vcxproj4
1 files 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 @@
<PreprocessorDefinitions Condition="'$(Platform)'=='ARM64'">_M_ARM64=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
<Link>
- <DelayLoadDLLs>bcrypt.dll;cfgmgr32.dll;iphlpapi.dll;nci.dll;version.dll</DelayLoadDLLs>
+ <DelayLoadDLLs>advapi32.dll;bcrypt.dll;crypt32.dll;cfgmgr32.dll;iphlpapi.dll;ole32.dll;nci.dll;setupapi.dll;shell32.dll;shlwapi.dll;version.dll</DelayLoadDLLs>
<AdditionalDependencies>Bcrypt.lib;Crypt32.lib;Cfgmgr32.lib;Iphlpapi.lib;$(IntDir)nci.lib;ntdll.lib;Setupapi.lib;shlwapi.lib;version.lib;%(AdditionalDependencies)</AdditionalDependencies>
<ModuleDefinitionFile>exports.def</ModuleDefinitionFile>
<SubSystem>Windows</SubSystem>
@@ -209,4 +209,4 @@
<Target Name="CleanSignTarget">
<Delete Files="$(IntermediateOutputPath)$(TargetName).sign" />
</Target>
-</Project> \ No newline at end of file
+</Project>