Updated ntdll-NtDevicePath patchset.

This commit is contained in:
Paul Gofman 2023-01-06 16:50:07 -06:00
parent 90d6184697
commit d1bde95011

View File

@ -194,8 +194,8 @@ index 67e0c6f0b40..25a03ef84f1 100644
+ else
+ return nt_to_unix_file_name_internal( attr, name_ret, disposition );
+
+ name_len = sizeof(dosprefixW) + wcslen(prefix) * sizeof(WCHAR) +
+ nameW->Length - offset * sizeof(WCHAR) + sizeof(WCHAR);
+ name_len = sizeof(dosprefixW) + wcslen(prefix) * sizeof(WCHAR)
+ + sizeof(WCHAR) /* '\\' */ + nameW->Length - offset * sizeof(WCHAR) + sizeof(WCHAR);
+ if (!(name = malloc( name_len )))
+ return STATUS_NO_MEMORY;
+