mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
Use server information for GetSystemMetrics.
svn path=/trunk/; revision=33920
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user