diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-10-30 13:26:36 +0100 |
---|---|---|
committer | Simon Rozman <simon@rozman.si> | 2020-10-31 10:41:49 +0100 |
commit | 8c935ce1517f4420ffd0a984e28a7a46a0c5837f (patch) | |
tree | e22c918d20f1cddcb17aec39b87352155111573e /api/resource.c | |
parent | api: elevate only when needed for system operations (diff) | |
download | wintun-8c935ce1517f4420ffd0a984e28a7a46a0c5837f.tar.xz wintun-8c935ce1517f4420ffd0a984e28a7a46a0c5837f.zip |
api: remove security attributes debug trap door
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'api/resource.c')
-rw-r--r-- | api/resource.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/resource.c b/api/resource.c index de02302..17bed6a 100644 --- a/api/resource.c +++ b/api/resource.c @@ -38,7 +38,7 @@ ResourceCopyToFile(_In_z_ const WCHAR *DestinationPath, _In_z_ const WCHAR *Reso DestinationPath, GENERIC_WRITE, 0, - SecurityAttributes, + &SecurityAttributes, CREATE_NEW, FILE_ATTRIBUTE_NORMAL | FILE_ATTRIBUTE_TEMPORARY, NULL); |