aboutsummaryrefslogtreecommitdiffstats
path: root/api/api.h
diff options
context:
space:
mode:
authorSimon Rozman <simon@rozman.si>2020-10-24 22:12:47 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2020-10-30 16:51:01 +0100
commitbf4eabb4ca3fb1d0c68b375a2a964165776e44cb (patch)
tree4fe9d219bf6c64a7447caa17eb4f33405f4d7647 /api/api.h
parentapi: add ring management (diff)
downloadwintun-bf4eabb4ca3fb1d0c68b375a2a964165776e44cb.tar.xz
wintun-bf4eabb4ca3fb1d0c68b375a2a964165776e44cb.zip
api: switch to private heap
We must not use the process heap, as it is changeable. Client may change it causing our HeapFree() to use wrong heap. Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'api/api.h')
-rw-r--r--api/api.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/api.h b/api/api.h
index 48cd7d9..10cb6e0 100644
--- a/api/api.h
+++ b/api/api.h
@@ -15,4 +15,5 @@
#endif
extern HINSTANCE ResourceModule;
+extern HANDLE ModuleHeap;
extern SECURITY_ATTRIBUTES *SecurityAttributes;