Use server information for GetSystemMetrics.

svn path=/trunk/; revision=33920
This commit is contained in:
James Tabor 2008-06-10 21:09:31 +00:00
parent e851af141d
commit 07bd1ef0d2
2 changed files with 12 additions and 3 deletions

View file

@ -99,6 +99,9 @@ LogFontW2A(LPLOGFONTA pA, CONST LOGFONTW *pW)
int STDCALL
GetSystemMetrics(int nIndex)
{
// FIXME("Global Sever Data -> %x\n",g_psi);
if (g_psi) return g_psi->SystemMetrics[nIndex];
else
return(NtUserGetSystemMetrics(nIndex));
}

View file

@ -57,9 +57,15 @@ NTSTATUS FASTCALL InitUserImpl(VOID)
return Status;
}
gpsi = UserHeapAlloc(sizeof(SERVERINFO));
if (gpsi) RtlZeroMemory(gpsi, sizeof(SERVERINFO));
if (!gpsi)
{
gpsi = UserHeapAlloc(sizeof(SERVERINFO));
if (gpsi)
{
RtlZeroMemory(gpsi, sizeof(SERVERINFO));
DPRINT1("Gloabal Server Data -> %x\n", gpsi);
}
}
return STATUS_SUCCESS;
}