mirror of
https://github.com/reactos/reactos.git
synced 2024-08-16 16:39:08 +00:00
[NTOSKRNL]
- Fix the fix for IopStoreSystemPartitionInformation(). The sizeof wasn't on an unicode string... I blame the guy who first wrote that function! Thanks to "rs" on IRC for having spotted the error. svn path=/trunk/; revision=51797
This commit is contained in:
parent
8f5d08dbdd
commit
bddd9a194a
|
@ -701,7 +701,7 @@ IopStoreSystemPartitionInformation(IN PUNICODE_STRING NtSystemPartitionDeviceNam
|
|||
UNICODE_STRING LinkTarget, KeyName;
|
||||
OBJECT_ATTRIBUTES ObjectAttributes;
|
||||
HANDLE LinkHandle, RegistryHandle, KeyHandle;
|
||||
WCHAR LinkTargetBuffer[256], KeyNameBuffer[sizeof("SystemPartition") / sizeof(WCHAR)];
|
||||
WCHAR LinkTargetBuffer[256], KeyNameBuffer[sizeof(L"SystemPartition") / sizeof(WCHAR)];
|
||||
UNICODE_STRING CmRegistryMachineSystemName = RTL_CONSTANT_STRING(L"\\Registry\\Machine\\SYSTEM");
|
||||
|
||||
ASSERT(NtSystemPartitionDeviceName->MaximumLength >= NtSystemPartitionDeviceName->Length + sizeof(WCHAR));
|
||||
|
|
Loading…
Reference in a new issue