mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +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;
|
||||
UNICODE_STRING RootRegKey;
|
||||
HANDLE RootRegHandle;
|
||||
WCHAR RootRegString[] = L"\\REGISTRY\\MACHINE\\HARDWARE\\DESCRIPTION\\SYSTEM";
|
||||
IO_QUERY Query;
|
||||
|
||||
/* Set up the String */
|
||||
RootRegKey.Length = 0;
|
||||
RootRegKey.MaximumLength = 2048;
|
||||
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 */
|
||||
InitializeObjectAttributes(
|
||||
|
|
Loading…
Reference in a new issue