Commit 405ced09 authored by Andrey Turkin's avatar Andrey Turkin Committed by Alexandre Julliard

user32: GetUserObjectSecurity should return a valid security descriptor.

parent 9428dfe7
......@@ -628,7 +628,14 @@ BOOL WINAPI GetUserObjectSecurity( HANDLE handle, PSECURITY_INFORMATION info,
PSECURITY_DESCRIPTOR sid, DWORD len, LPDWORD needed )
{
FIXME( "(%p %p %p len=%d %p),stub!\n", handle, info, sid, len, needed );
return TRUE;
if (needed)
*needed = sizeof(SECURITY_DESCRIPTOR);
if (len < sizeof(SECURITY_DESCRIPTOR))
{
SetLastError( ERROR_INSUFFICIENT_BUFFER );
return FALSE;
}
return InitializeSecurityDescriptor(sid, SECURITY_DESCRIPTOR_REVISION);
}
/***********************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment