From bddd9a194a0ea75bac7cbc69116401ef30ec65ee Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Mon, 16 May 2011 18:06:14 +0000 Subject: [PATCH] [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 --- reactos/ntoskrnl/io/iomgr/iorsrce.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/io/iomgr/iorsrce.c b/reactos/ntoskrnl/io/iomgr/iorsrce.c index 469252c135d..db227cf5c61 100644 --- a/reactos/ntoskrnl/io/iomgr/iorsrce.c +++ b/reactos/ntoskrnl/io/iomgr/iorsrce.c @@ -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));