fix some more security winetests

svn path=/trunk/; revision=38475
This commit is contained in:
Christoph von Wittich 2008-12-30 17:10:40 +00:00
parent 45bacdf407
commit a1ffc8d05a

View file

@ -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))
{