mirror of https://github.com/tongzx/nt5src
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.
39 lines
1.0 KiB
39 lines
1.0 KiB
#include "precomp.h"
|
|
#pragma hdrstop
|
|
/**************************************************************************/
|
|
/***** Common Library Component - INF File Handling Routines 8 ************/
|
|
/**************************************************************************/
|
|
|
|
|
|
/*
|
|
** Purpose:
|
|
** Frees the memory used by an RGSZ.
|
|
** Arguments:
|
|
** rgsz: the array of string pointers to free. Must be non-NULL though
|
|
** it may be empty. The first NULL string pointer in rgsz must be
|
|
** in the last location of the allocated memory for rgsz.
|
|
** Returns:
|
|
** fFalse if any of the free operations fail.
|
|
** fTrue if all the free operations succeed.
|
|
**
|
|
**************************************************************************/
|
|
BOOL APIENTRY FFreeRgsz(rgsz)
|
|
RGSZ rgsz;
|
|
{
|
|
BOOL fAnswer = fTrue;
|
|
USHORT cItems = 0;
|
|
|
|
AssertDataSeg();
|
|
|
|
ChkArg(rgsz != (RGSZ)NULL, 1, fFalse);
|
|
|
|
while (*(rgsz + cItems) != (SZ)NULL)
|
|
{
|
|
SFree(*(rgsz + cItems));
|
|
cItems++;
|
|
}
|
|
|
|
SFree(rgsz);
|
|
|
|
return(fAnswer);
|
|
}
|