mirror of
https://github.com/reactos/reactos.git
synced 2024-07-22 12:18:04 +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
|
int STDCALL
|
||||||
GetSystemMetrics(int nIndex)
|
GetSystemMetrics(int nIndex)
|
||||||
{
|
{
|
||||||
|
// FIXME("Global Sever Data -> %x\n",g_psi);
|
||||||
|
if (g_psi) return g_psi->SystemMetrics[nIndex];
|
||||||
|
else
|
||||||
return(NtUserGetSystemMetrics(nIndex));
|
return(NtUserGetSystemMetrics(nIndex));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -57,9 +57,15 @@ NTSTATUS FASTCALL InitUserImpl(VOID)
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
gpsi = UserHeapAlloc(sizeof(SERVERINFO));
|
if (!gpsi)
|
||||||
if (gpsi) RtlZeroMemory(gpsi, sizeof(SERVERINFO));
|
{
|
||||||
|
gpsi = UserHeapAlloc(sizeof(SERVERINFO));
|
||||||
|
if (gpsi)
|
||||||
|
{
|
||||||
|
RtlZeroMemory(gpsi, sizeof(SERVERINFO));
|
||||||
|
DPRINT1("Gloabal Server Data -> %x\n", gpsi);
|
||||||
|
}
|
||||||
|
}
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue