diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-10-31 12:34:01 +0100 |
---|---|---|
committer | Simon Rozman <simon@rozman.si> | 2020-10-31 19:11:51 +0100 |
commit | 62f21f2fdd7001612dc42336dc03ab1bdf4b7ca0 (patch) | |
tree | 694a16c7da3d1ba316d438a2e9dd2a5601a1af42 /api/entry.c | |
parent | Bump date headers (diff) | |
download | wintun-62f21f2fdd7001612dc42336dc03ab1bdf4b7ca0.tar.xz wintun-62f21f2fdd7001612dc42336dc03ab1bdf4b7ca0.zip |
api: link to nci.dll at compile time
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'api/entry.c')
-rw-r--r-- | api/entry.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/api/entry.c b/api/entry.c index df24ff9..2232c18 100644 --- a/api/entry.c +++ b/api/entry.c @@ -8,7 +8,6 @@ #include "logger.h" #include "registry.h" #include "namespace.h" -#include "nci.h" #include "wintun.h" #include <Windows.h> @@ -84,12 +83,9 @@ DllMain(_In_ HINSTANCE hinstDLL, _In_ DWORD fdwReason, _In_ LPVOID lpvReserved) L"O:SYD:P(A;;GA;;;SY)", SDDL_REVISION_1, &SecurityAttributes.lpSecurityDescriptor, NULL); AdapterInit(); NamespaceInit(); - if (NciInit() != ERROR_SUCCESS) - return FALSE; break; case DLL_PROCESS_DETACH: - NciCleanup(); NamespaceCleanup(); LocalFree(SecurityAttributes.lpSecurityDescriptor); HeapDestroy(ModuleHeap); |