[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:
Pierre Schweitzer 2011-05-16 18:06:14 +00:00
parent 8f5d08dbdd
commit bddd9a194a

View file

@ -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));