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.
 
 
 
 
 
 

44 lines
946 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;
}