mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 14:10:32 +00:00
user32: GetUserObjectSecurity should return a valid security descriptor.
This commit is contained in:
parent
9428dfe71a
commit
405ced0969
@ -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);
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user