From 3ad38f29b5c8a3845ddad43de45e1271a1fea3fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Thu, 17 Jun 2021 17:59:32 +0200 Subject: [PATCH] [NTOS:OB] Use RtlInitUnicodeString for constant string CORE-17637 --- ntoskrnl/ob/obname.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntoskrnl/ob/obname.c b/ntoskrnl/ob/obname.c index e83000a3448..586561cd9b0 100644 --- a/ntoskrnl/ob/obname.c +++ b/ntoskrnl/ob/obname.c @@ -259,7 +259,7 @@ ObpCreateDosDevicesDirectory(VOID) * DosDevices directory \?? , for backward compatibility with * Windows NT-2000 systems. */ - RtlCreateUnicodeString(&LinkName, L"\\DosDevices"); + RtlInitUnicodeString(&LinkName, L"\\DosDevices"); RtlInitUnicodeString(&RootName, (PCWSTR)&ObpDosDevicesShortNameRoot); InitializeObjectAttributes(&ObjectAttributes, &LinkName,