mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 13:06:34 +00:00
[WDF] Add Windows Driver Framework files
Takern from Microsoft GitHub repo:
d9c6040fe9
Licensed under MIT
This commit is contained in:
parent
545df81502
commit
8a978a179f
475 changed files with 285099 additions and 0 deletions
52
sdk/lib/drivers/wdf/shared/support/fxdevicetext.cpp
Normal file
52
sdk/lib/drivers/wdf/shared/support/fxdevicetext.cpp
Normal file
|
@ -0,0 +1,52 @@
|
|||
/*++
|
||||
|
||||
Copyright (c) Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
FxDeviceText.cpp
|
||||
|
||||
Abstract:
|
||||
|
||||
This module implements the device text object.
|
||||
|
||||
Author:
|
||||
|
||||
|
||||
|
||||
Environment:
|
||||
|
||||
Both kernel and user mode
|
||||
|
||||
Revision History:
|
||||
|
||||
--*/
|
||||
|
||||
#include "FxSupportPch.hpp"
|
||||
|
||||
FxDeviceText::FxDeviceText(
|
||||
VOID
|
||||
) :
|
||||
m_Description(NULL),
|
||||
m_LocationInformation(NULL),
|
||||
m_LocaleId(0)
|
||||
{
|
||||
m_Entry.Next = NULL;
|
||||
}
|
||||
|
||||
FxDeviceText::~FxDeviceText()
|
||||
{
|
||||
ASSERT(Mx::MxGetCurrentIrql() == PASSIVE_LEVEL);
|
||||
|
||||
ASSERT(m_Entry.Next == NULL);
|
||||
|
||||
if (m_Description != NULL) {
|
||||
FxPoolFree(m_Description);
|
||||
m_Description = NULL;
|
||||
}
|
||||
|
||||
if (m_LocationInformation != NULL) {
|
||||
FxPoolFree(m_LocationInformation);
|
||||
m_LocationInformation = NULL;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue