Move the init of server info after heap is init.

svn path=/trunk/; revision=33766
This commit is contained in:
James Tabor 2008-05-30 06:13:52 +00:00
parent 87b264fba8
commit c4f0f3c668
7 changed files with 4 additions and 7 deletions

View file

@ -10,6 +10,7 @@
#define UserEnterCo UserEnterExclusive
#define UserLeaveCo UserLeave
extern PSERVERINFO gpsi;
NTSTATUS FASTCALL InitUserImpl(VOID);
VOID FASTCALL CleanupUserImpl(VOID);

View file

@ -4,7 +4,6 @@
#define NDEBUG
#include <debug.h>
extern PSERVERINFO gpsi;
//static PEVENTTABLE GlobalEvents;

View file

@ -34,7 +34,6 @@
#define NDEBUG
#include <debug.h>
extern PSERVERINFO gpsi;
static BOOL Setup = FALSE;

View file

@ -13,7 +13,6 @@
#define NDEBUG
#include <debug.h>
extern PSERVERINFO gpsi;
/*
* @unimplemented

View file

@ -57,6 +57,9 @@ NTSTATUS FASTCALL InitUserImpl(VOID)
return Status;
}
gpsi = UserHeapAlloc(sizeof(SERVERINFO));
if (gpsi) RtlZeroMemory(gpsi, sizeof(SERVERINFO));
return STATUS_SUCCESS;
}

View file

@ -33,7 +33,6 @@
#define NDEBUG
#include <debug.h>
extern PSERVERINFO gpsi;
/* dialog resources appear to pass this in 16 bits, handle them properly */
#define CW_USEDEFAULT16 (0x8000)
@ -51,8 +50,6 @@ extern PSERVERINFO gpsi;
NTSTATUS FASTCALL
InitWindowImpl(VOID)
{
gpsi = UserHeapAlloc(sizeof(SERVERINFO));
if (gpsi) RtlZeroMemory(gpsi, sizeof(SERVERINFO));
return STATUS_SUCCESS;
}

View file

@ -27,7 +27,6 @@
#define NDEBUG
#include <debug.h>
extern PSERVERINFO gpsi;
static COLORREF SysColors[] =
{