5 Aug
2008
5 Aug
'08
6:44 a.m.
"Dan Hipschman" <dsh(a)linux.ucla.edu> wrote:
+#include <assert.h> ... @@ -2718,8 +2719,38 @@ DWORD WINAPI GetSecurityInfo( PSECURITY_DESCRIPTOR *ppSecurityDescriptor ) { - FIXME("stub!\n"); - return ERROR_BAD_PROVIDER; + SECURITY_DESCRIPTOR *sd; + NTSTATUS status; + ULONG n1, n2; + + status = NtQuerySecurityObject(hObject, SecurityInfo, NULL, 0, &n1); + assert(status != STATUS_SUCCESS); + if (status != STATUS_BUFFER_TOO_SMALL) + return RtlNtStatusToDosError(status);
assert() (or rather ok(0)) would be appropriate in the test case, but not in the implementation IMO. -- Dmitry.