Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

52 lines
960 B

//
// Microsoft Corporation - Copyright 1997
//
//
// BASE.CPP - Base class methods
//
#include "pch.h"
// Constructors / Destructors
CBase::CBase(
LPECB lpEcb,
LPSTR *lppszOut,
LPSTR *lppszDebug,
LPDUMPTABLE lpDT )
{
this->lpEcb = lpEcb;
this->lpszOut = NULL;
this->lpszDebug = NULL;
this->lpDT = lpDT;
if ( lppszOut )
{
*lppszOut = (LPSTR) GlobalAlloc( GMEM_FIXED, 65336 );
if ( *lppszOut )
{
this->lpszOut = *lppszOut;
this->lpszOut[ 0 ] = 0; // start empty;
}
}
if ( lppszDebug )
{
*lppszDebug = (LPSTR) GlobalAlloc( GMEM_FIXED, 8196 );
if ( *lppszDebug )
{
this->lpszDebug = *lppszDebug;
this->lpszDebug[ 0 ] = 0; // start empty;
}
}
} // CBase( )
CBase::~CBase( )
{
GlobalFree( lpszDebug );
GlobalFree( lpszOut );
} // ~CBase( )