diff options
author | Christopher Faylor <me@cgf.cx> | 2005-08-12 02:39:13 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-08-12 02:39:13 +0000 |
commit | 1cd065837c6698b0e3dba6977b47061f8419dfba (patch) | |
tree | a7ff66c35914ad5285d42712669d75ee6c3af394 /winsup/cygwin/security.cc | |
parent | b4ec1841997ed8ddfba41818e4806513d8da433d (diff) | |
download | cygnal-1cd065837c6698b0e3dba6977b47061f8419dfba.tar.gz cygnal-1cd065837c6698b0e3dba6977b47061f8419dfba.tar.bz2 cygnal-1cd065837c6698b0e3dba6977b47061f8419dfba.zip |
white space
Diffstat (limited to 'winsup/cygwin/security.cc')
-rw-r--r-- | winsup/cygwin/security.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/security.cc b/winsup/cygwin/security.cc index 870bb6936..8f3ed7917 100644 --- a/winsup/cygwin/security.cc +++ b/winsup/cygwin/security.cc @@ -1354,7 +1354,7 @@ get_reg_security (HANDLE handle, security_descriptor &sd_ret) if (ret == ERROR_INSUFFICIENT_BUFFER) { if (!sd_ret.malloc (len)) - set_errno (ENOMEM); + set_errno (ENOMEM); else ret = RegGetKeySecurity ((HKEY) handle, DACL_SECURITY_INFORMATION @@ -1376,10 +1376,10 @@ get_nt_object_security (HANDLE handle, SE_OBJECT_TYPE object_type, { NTSTATUS ret; ULONG len = 0; - + /* Unfortunately, NtQuerySecurityObject doesn't work on predefined registry keys like HKEY_LOCAL_MACHINE. It fails with "Invalid Handle". So we - have to retreat to the Win32 registry functions for registry keys. + have to retreat to the Win32 registry functions for registry keys. What bugs me is that RegGetKeySecurity is obviously just a wrapper around NtQuerySecurityObject, but there seems to be no function to convert pseudo HKEY values to real handles. */ |