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.
|
|
//----------------------------------------------------------------------------
//
// 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; }
|