Leaked source code of windows server 2003
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.
 
 
 
 
 
 

44 lines
990 B

//+--------------------------------------------------------------------------
//
// Copyright (c) 1997-1999 Microsoft Corporation
//
// File:
//
// Contents:
//
// History:
//
//---------------------------------------------------------------------------
///////////////////////////////////////////////////////////////////////////////
LICENSE_STATUS
LicenseMemoryAllocate( ULONG Length, PVOID UNALIGNED * ppMemory )
{
if( 0 == Length )
{
return( LICENSE_STATUS_INVALID_INPUT );
}
*ppMemory = LocalAlloc( LMEM_ZEROINIT, Length );
if( NULL == *ppMemory )
{
return( LICENSE_STATUS_OUT_OF_MEMORY );
}
return( LICENSE_STATUS_OK );
}
///////////////////////////////////////////////////////////////////////////////
VOID
LicenseMemoryFree( PVOID UNALIGNED * ppMemory )
{
if( NULL == *ppMemory )
{
return;
}
LocalFree( *ppMemory );
*ppMemory = NULL;
}