This commit is contained in:
DavidXanatos 2023-04-20 11:43:22 +02:00
parent 7609b99951
commit 1cc5e49636
2 changed files with 2 additions and 2 deletions

View File

@ -1420,7 +1420,7 @@ _FX NTSTATUS File_MergeDummy(
wmemcpy(FakePath, TruePath, TruePathLen);
FakePath[TruePathLen++] = L'\\';
FakePath[TruePathLen++] = L'\0';
FakePath[TruePathLen] = L'\0';
end = &FakePath[TruePathLen];
wmemcpy(end, ptr, name_len);
end[name_len] = L'\0';

View File

@ -757,7 +757,7 @@ _FX NTSTATUS Key_MergeCacheDummys(KEY_MERGE *merge, const WCHAR *TruePath)
wmemcpy(FakePath, TruePath, TruePathLen);
FakePath[TruePathLen++] = L'\\';
FakePath[TruePathLen++] = L'\0';
FakePath[TruePathLen] = L'\0';
end = &FakePath[TruePathLen];
wmemcpy(end, ptr, name_len);
end[name_len] = L'\0';