Reactos
1/*++
2
3Copyright (c) Microsoft Corporation
4
5Module Name:
6
7 FxDeviceText.cpp
8
9Abstract:
10
11 This module implements the device text object.
12
13Author:
14
15
16
17Environment:
18
19 Both kernel and user mode
20
21Revision History:
22
23--*/
24
25#include "fxsupportpch.hpp"
26
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
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}