[NTOS:IO] Fix a count in characters vs. bytes mismatch.

This commit is contained in:
Hermès Bélusca-Maïto 2024-02-07 12:36:31 +01:00
parent d1b3115afa
commit 3b60f4fa13
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

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