"Dan Hipschman" dsh@linux.ucla.edu wrote:
+#include <assert.h>
...
DWORD WINAPI GetSecurityInfo( HANDLE hObject, SE_OBJECT_TYPE ObjectType, @@ -2718,8 +2735,44 @@ DWORD WINAPI GetSecurityInfo( PSECURITY_DESCRIPTOR *ppSecurityDescriptor ) {
- FIXME("stub!\n");
- return ERROR_BAD_PROVIDER;
- PSECURITY_DESCRIPTOR sd;
- NTSTATUS status;
- ULONG n1, n2;
- BOOL present, defaulted;
- status = NtQuerySecurityObject(hObject, SecurityInfo, NULL, 0, &n1);
- assert(status != STATUS_SUCCESS);
- if (status != STATUS_BUFFER_TOO_SMALL)
return RtlNtStatusToDosError(status);
My previous comments regarding assert() still apply.