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.
75 lines
1.7 KiB
75 lines
1.7 KiB
//----------------------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows
|
|
// Copyright (C) Microsoft Corporation, 2001.
|
|
//
|
|
// File: Freeobj.c
|
|
//
|
|
// Contents: Policy management for directory
|
|
//
|
|
//
|
|
// History: TaroonM
|
|
// 10/30/01
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
#include "precomp.h"
|
|
|
|
|
|
void
|
|
FreeWirelessPolicyObject(
|
|
PWIRELESS_POLICY_OBJECT pWirelessPolicyObject
|
|
)
|
|
{
|
|
if (pWirelessPolicyObject->pszDescription) {
|
|
FreePolStr(pWirelessPolicyObject->pszDescription);
|
|
}
|
|
|
|
if (pWirelessPolicyObject->pszWirelessOwnersReference) {
|
|
FreePolStr(pWirelessPolicyObject->pszWirelessOwnersReference);
|
|
}
|
|
|
|
if (pWirelessPolicyObject->pszWirelessName) {
|
|
FreePolStr(pWirelessPolicyObject->pszWirelessName);
|
|
}
|
|
|
|
if (pWirelessPolicyObject->pszWirelessID) {
|
|
FreePolStr(pWirelessPolicyObject->pszWirelessID);
|
|
}
|
|
|
|
if (pWirelessPolicyObject->pWirelessData) {
|
|
FreePolMem(pWirelessPolicyObject->pWirelessData);
|
|
}
|
|
|
|
FreePolMem(pWirelessPolicyObject);
|
|
|
|
return;
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
FreeWirelessPolicyObjects(
|
|
PWIRELESS_POLICY_OBJECT * ppWirelessPolicyObjects,
|
|
DWORD dwNumPolicyObjects
|
|
)
|
|
{
|
|
DWORD i = 0;
|
|
|
|
for (i = 0; i < dwNumPolicyObjects; i++) {
|
|
|
|
if (*(ppWirelessPolicyObjects + i)) {
|
|
|
|
FreeWirelessPolicyObject(*(ppWirelessPolicyObjects + i));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
FreePolMem(ppWirelessPolicyObjects);
|
|
|
|
return;
|
|
}
|
|
|
|
|