diff options
author | Simon Rozman <simon@rozman.si> | 2020-10-15 15:34:31 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-10-30 16:51:00 +0100 |
commit | 8272da638e76810c8bafd7e5d1a1217b2026c7da (patch) | |
tree | 9b924dc4614a7631b582ca3cc4d0d9a8707730a6 /api/resource.c | |
parent | api: arrange rundll32 a console logger (diff) | |
download | wintun-8272da638e76810c8bafd7e5d1a1217b2026c7da.tar.xz wintun-8272da638e76810c8bafd7e5d1a1217b2026c7da.zip |
api: unify security descriptors and disable for _DEBUG
When debugger is attached, CreateDirectory() with SYSTEM-only SID fails
with "This security ID may not be assigned as the owner of this object.
(Code 0x0000051B)".
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'api/resource.c')
-rw-r--r-- | api/resource.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/api/resource.c b/api/resource.c index 82f0d13..61dd2e7 100644 --- a/api/resource.c +++ b/api/resource.c @@ -27,10 +27,7 @@ ResourceGetAddress(_In_z_ const WCHAR *ResourceName, _Out_ const VOID **Address, } WINTUN_STATUS -ResourceCopyToFile( - _In_z_ const WCHAR *DestinationPath, - _In_opt_ SECURITY_ATTRIBUTES *SecurityAttributes, - _In_z_ const WCHAR *ResourceName) +ResourceCopyToFile(_In_z_ const WCHAR *DestinationPath, _In_z_ const WCHAR *ResourceName) { const VOID *LockedResource; DWORD SizeResource; |