advapi32: Implement GetSecurityInfo. [take 2]
Dmitry Timoshkov
dmitry at codeweavers.com
Wed Aug 6 00:21:44 CDT 2008
"Dan Hipschman" <dsh at 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.
--
Dmitry.
More information about the wine-devel
mailing list