1 /*++ 2 3 Copyright (c) Microsoft Corporation 4 5 Module Name: 6 7 FxDeviceText.cpp 8 9 Abstract: 10 11 This module implements the device text object. 12 13 Author: 14 15 16 17 Environment: 18 19 Both kernel and user mode 20 21 Revision History: 22 23 --*/ 24 25 #include "fxsupportpch.hpp" 26 FxDeviceText(VOID)27FxDeviceText::FxDeviceText( 28 VOID 29 ) : 30 m_Description(NULL), 31 m_LocationInformation(NULL), 32 m_LocaleId(0) 33 { 34 m_Entry.Next = NULL; 35 } 36 ~FxDeviceText()37FxDeviceText::~FxDeviceText() 38 { 39 ASSERT(Mx::MxGetCurrentIrql() == PASSIVE_LEVEL); 40 41 ASSERT(m_Entry.Next == NULL); 42 43 if (m_Description != NULL) { 44 FxPoolFree(m_Description); 45 m_Description = NULL; 46 } 47 48 if (m_LocationInformation != NULL) { 49 FxPoolFree(m_LocationInformation); 50 m_LocationInformation = NULL; 51 } 52 } 53