advapi32: Implement GetSecurityInfo.
Dmitry Timoshkov
dmitry at codeweavers.com
Tue Aug 5 01:44:19 CDT 2008
"Dan Hipschman" <dsh at 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.
More information about the wine-devel
mailing list