fix
This commit is contained in:
parent
846a3ea29e
commit
e194528cb8
|
@ -265,6 +265,9 @@ static NTSTATUS File_NtDeleteFile(OBJECT_ATTRIBUTES *ObjectAttributes);
|
|||
|
||||
static NTSTATUS File_NtDeleteFileImpl(OBJECT_ATTRIBUTES *ObjectAttributes);
|
||||
|
||||
static WCHAR *File_ConcatPath2(
|
||||
const WCHAR *Path1, ULONG Path1Len, const WCHAR *Path2, ULONG Path2Len);
|
||||
|
||||
static WCHAR* File_CanonizePath(
|
||||
const wchar_t* absolute_path, ULONG abs_path_len, const wchar_t* relative_path, ULONG rel_path_len);
|
||||
|
||||
|
|
|
@ -1671,11 +1671,11 @@ _FX WCHAR *File_AllocAndInitEnvironment_2(
|
|||
|
||||
_FX WCHAR *File_ConcatPath2(const WCHAR *Path1, ULONG Path1Len, const WCHAR *Path2, ULONG Path2Len)
|
||||
{
|
||||
ULONG len_dos = Path1Len + Path2Len;
|
||||
WCHAR* Path = Dll_Alloc((len_dos + 1) * sizeof(WCHAR));
|
||||
ULONG Length = Path1Len + Path2Len;
|
||||
WCHAR* Path = Dll_Alloc((Length + 1) * sizeof(WCHAR));
|
||||
wmemcpy(Path, Path1, Path1Len);
|
||||
wmemcpy(Path + Path1Len, Path2, Path2Len);
|
||||
Path[len_dos] = L'\0';
|
||||
Path[Length] = L'\0';
|
||||
return Path;
|
||||
}
|
||||
|
||||
|
|
|
@ -329,8 +329,7 @@ _FX FILE_GUID *File_GetLinkForGuid(const WCHAR* guid_str)
|
|||
|
||||
_FX WCHAR* File_TranslateGuidToNtPath2(const WCHAR* GuidPath, ULONG GuidPathLen)
|
||||
{
|
||||
ULONG len;
|
||||
WCHAR* NtPath;
|
||||
WCHAR* NtPath = NULL;
|
||||
|
||||
if (GuidPath && GuidPathLen >= 48 && _wcsnicmp(GuidPath, L"\\??\\Volume{", 11) == 0) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue