https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3ad38f29b5c8a3845ddad…
commit 3ad38f29b5c8a3845ddad43de45e1271a1fea3fa
Author: Jérôme Gardou <jerome.gardou(a)reactos.org>
AuthorDate: Thu Jun 17 17:59:32 2021 +0200
Commit: Jérôme Gardou <zefklop(a)users.noreply.github.com>
CommitDate: Mon Jun 28 10:20:57 2021 +0200
[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,