mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 08:00:24 +00:00
fix some more security winetests
svn path=/trunk/; revision=38475
This commit is contained in:
parent
45bacdf407
commit
a1ffc8d05a
1 changed files with 7 additions and 0 deletions
|
@ -1461,6 +1461,12 @@ LookupPrivilegeValueW(LPCWSTR SystemName,
|
|||
};
|
||||
unsigned Priv;
|
||||
|
||||
if (!ADVAPI_IsLocalComputer(SystemName))
|
||||
{
|
||||
SetLastError(RPC_S_SERVER_UNAVAILABLE);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (NULL != SystemName && L'\0' != *SystemName)
|
||||
{
|
||||
FIXME("LookupPrivilegeValueW: not implemented for remote system\n");
|
||||
|
@ -1601,6 +1607,7 @@ LookupPrivilegeNameW(LPCWSTR lpSystemName,
|
|||
SetLastError(RPC_S_SERVER_UNAVAILABLE);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (lpLuid->HighPart || (lpLuid->LowPart < SE_MIN_WELL_KNOWN_PRIVILEGE ||
|
||||
lpLuid->LowPart > SE_MAX_WELL_KNOWN_PRIVILEGE))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue