mirror of
https://github.com/reactos/reactos.git
synced 2024-07-09 06:05:11 +00:00
Use server information for GetSystemMetrics.
svn path=/trunk/; revision=33920
This commit is contained in:
parent
e851af141d
commit
07bd1ef0d2
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue