"Dan Hipschman" dsh@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.