Author: akhaldi
Date: Sat Oct 25 16:08:39 2014
New Revision: 64987
URL:
http://svn.reactos.org/svn/reactos?rev=64987&view=rev
Log:
[ADVAPI32]
* Update GetKernelObjectSecurity().
CORE-8540
Modified:
trunk/reactos/dll/win32/advapi32/wine/security.c
Modified: trunk/reactos/dll/win32/advapi32/wine/security.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/wine/se…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/wine/security.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/wine/security.c [iso-8859-1] Sat Oct 25 16:08:39
2014
@@ -854,31 +854,21 @@
return (DWORD)RtlLengthSid(pSid);
}
-/*
- * @implemented
- */
-BOOL
-WINAPI
-GetKernelObjectSecurity(HANDLE Handle,
- SECURITY_INFORMATION RequestedInformation,
- PSECURITY_DESCRIPTOR pSecurityDescriptor,
- DWORD nLength,
- LPDWORD lpnLengthNeeded)
-{
- NTSTATUS Status;
-
- Status = NtQuerySecurityObject(Handle,
- RequestedInformation,
- pSecurityDescriptor,
- nLength,
- lpnLengthNeeded);
- if (!NT_SUCCESS(Status))
- {
- SetLastError(RtlNtStatusToDosError(Status));
- return FALSE;
- }
-
- return TRUE;
+/******************************************************************************
+ * GetKernelObjectSecurity [ADVAPI32.@]
+ */
+BOOL WINAPI GetKernelObjectSecurity(
+ HANDLE Handle,
+ SECURITY_INFORMATION RequestedInformation,
+ PSECURITY_DESCRIPTOR pSecurityDescriptor,
+ DWORD nLength,
+ LPDWORD lpnLengthNeeded )
+{
+ TRACE("(%p,0x%08x,%p,0x%08x,%p)\n", Handle, RequestedInformation,
+ pSecurityDescriptor, nLength, lpnLengthNeeded);
+
+ return set_ntstatus( NtQuerySecurityObject(Handle, RequestedInformation,
pSecurityDescriptor,
+ nLength, lpnLengthNeeded ));
}
/*