https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3b60f4fa138864bb3675a…
commit 3b60f4fa138864bb3675ae94ed5cfd54ab0cba97
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Wed Feb 7 12:36:31 2024 +0100
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Fri Feb 9 17:14:19 2024 +0100
[NTOS:IO] Fix a count in characters vs. bytes mismatch.
---
ntoskrnl/io/iomgr/driver.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ntoskrnl/io/iomgr/driver.c b/ntoskrnl/io/iomgr/driver.c
index ac3ac0f3815..ff61b784a79 100644
--- a/ntoskrnl/io/iomgr/driver.c
+++ b/ntoskrnl/io/iomgr/driver.c
@@ -939,7 +939,7 @@ IopInitializeBuiltinDriver(IN PLDR_DATA_TABLE_ENTRY BootLdrEntry)
{
WCHAR num[11];
UNICODE_STRING instancePath;
- RtlStringCchPrintfW(num, sizeof(num), L"%u", i);
+ RtlStringCbPrintfW(num, sizeof(num), L"%u", i);
Status = IopGetRegistryValue(enumServiceHandle, num, &kvInfo);
if (!NT_SUCCESS(Status))