[Kernel] Replaced TranslateAnsiString with TranslateAnsiPath for file paths.

This removes paths that starts or ends with whitespace characters
This commit is contained in:
Gliniak
2025-01-14 22:43:20 +01:00
parent e80d4effa1
commit 1688ea5d69
5 changed files with 15 additions and 9 deletions

View File

@@ -263,7 +263,7 @@ dword_result_t XexLoadImageHeaders_entry(pointer_t<X_ANSI_STRING> path,
return X_STATUS_BUFFER_TOO_SMALL;
}
auto current_kernel = ctx->kernel_state;
auto target_path = util::TranslateAnsiString(current_kernel->memory(), path);
auto target_path = util::TranslateAnsiPath(current_kernel->memory(), path);
vfs::File* vfs_file = nullptr;
vfs::FileAction file_action;