mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
[NTOSKRNL]
Fix CID 3454 svn path=/trunk/; revision=50087
This commit is contained in:
parent
90d2da336d
commit
f43fa44a2e
1 changed files with 1 additions and 2 deletions
|
@ -980,14 +980,13 @@ IoQueryDeviceDescription(PINTERFACE_TYPE BusType OPTIONAL,
|
||||||
OBJECT_ATTRIBUTES ObjectAttributes;
|
OBJECT_ATTRIBUTES ObjectAttributes;
|
||||||
UNICODE_STRING RootRegKey;
|
UNICODE_STRING RootRegKey;
|
||||||
HANDLE RootRegHandle;
|
HANDLE RootRegHandle;
|
||||||
WCHAR RootRegString[] = L"\\REGISTRY\\MACHINE\\HARDWARE\\DESCRIPTION\\SYSTEM";
|
|
||||||
IO_QUERY Query;
|
IO_QUERY Query;
|
||||||
|
|
||||||
/* Set up the String */
|
/* Set up the String */
|
||||||
RootRegKey.Length = 0;
|
RootRegKey.Length = 0;
|
||||||
RootRegKey.MaximumLength = 2048;
|
RootRegKey.MaximumLength = 2048;
|
||||||
RootRegKey.Buffer = ExAllocatePoolWithTag(PagedPool, RootRegKey.MaximumLength, TAG_IO_RESOURCE);
|
RootRegKey.Buffer = ExAllocatePoolWithTag(PagedPool, RootRegKey.MaximumLength, TAG_IO_RESOURCE);
|
||||||
RtlAppendUnicodeToString(&RootRegKey, RootRegString);
|
RtlAppendUnicodeToString(&RootRegKey, L"\\REGISTRY\\MACHINE\\HARDWARE\\DESCRIPTION\\SYSTEM");
|
||||||
|
|
||||||
/* Open a handle to the Root Registry Key */
|
/* Open a handle to the Root Registry Key */
|
||||||
InitializeObjectAttributes(
|
InitializeObjectAttributes(
|
||||||
|
|
Loading…
Reference in a new issue