diff options
author | Pierre Ossman <ossman@cendio.se> | 2016-01-12 12:32:15 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2016-01-12 12:32:15 +0100 |
commit | fc08bee5afdb07830d6c6fb28359a020a5c305c5 (patch) | |
tree | e2009681235886e7c9e6669f0939b679815fcfab /win/rfb_win32/Registry.cxx | |
parent | 4ab1e5d4b5ebaac0c410eedcc76865736aaa6ae4 (diff) | |
download | tigervnc-fc08bee5afdb07830d6c6fb28359a020a5c305c5.tar.gz tigervnc-fc08bee5afdb07830d6c6fb28359a020a5c305c5.zip |
Remove legacy Windows code
We have lots of code that deals with Windows versions that we no
longer support anyway. Clean out all of this old cruft.
Diffstat (limited to 'win/rfb_win32/Registry.cxx')
-rw-r--r-- | win/rfb_win32/Registry.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/win/rfb_win32/Registry.cxx b/win/rfb_win32/Registry.cxx index 70083f4a..afbdd067 100644 --- a/win/rfb_win32/Registry.cxx +++ b/win/rfb_win32/Registry.cxx @@ -20,7 +20,6 @@ #include <rfb_win32/Registry.h> #include <rfb_win32/Security.h> -#include <rfb_win32/DynamicFn.h> #include <rdr/MemOutStream.h> #include <rdr/HexOutStream.h> #include <rdr/HexInStream.h> @@ -100,11 +99,7 @@ void RegKey::openKey(const RegKey& root, const TCHAR* name, bool readOnly) { void RegKey::setDACL(const PACL acl, bool inherit) { DWORD result; - typedef DWORD (WINAPI *_SetSecurityInfo_proto) (HANDLE, SE_OBJECT_TYPE, SECURITY_INFORMATION, PSID, PSID, PACL, PACL); - DynamicFn<_SetSecurityInfo_proto> _SetSecurityInfo(_T("advapi32.dll"), "SetSecurityInfo"); - if (!_SetSecurityInfo.isValid()) - throw rdr::SystemException("RegKey::setDACL failed", ERROR_CALL_NOT_IMPLEMENTED); - if ((result = (*_SetSecurityInfo)(key, SE_REGISTRY_KEY, + if ((result = SetSecurityInfo(key, SE_REGISTRY_KEY, DACL_SECURITY_INFORMATION | (inherit ? UNPROTECTED_DACL_SECURITY_INFORMATION : PROTECTED_DACL_SECURITY_INFORMATION), 0, 0, acl, 0)) != ERROR_SUCCESS) |