From 4280ae8adcd5b073b6c6f0a1e29f42ba176b8279 Mon Sep 17 00:00:00 2001 From: gibbed Date: Wed, 27 May 2015 14:36:59 -0500 Subject: [PATCH] Corrected HostPathEntry::QueryDirectory return value when the first search fails. --- src/xenia/kernel/fs/devices/host_path_entry.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenia/kernel/fs/devices/host_path_entry.cc b/src/xenia/kernel/fs/devices/host_path_entry.cc index fc71d3214..c3584af34 100644 --- a/src/xenia/kernel/fs/devices/host_path_entry.cc +++ b/src/xenia/kernel/fs/devices/host_path_entry.cc @@ -82,7 +82,7 @@ X_STATUS HostPathEntry::QueryDirectory(X_FILE_DIRECTORY_INFORMATION* out_info, s handle = find_file_ = FindFirstFile(target_path.c_str(), &ffd); if (handle == INVALID_HANDLE_VALUE) { if (GetLastError() == ERROR_FILE_NOT_FOUND) { - return X_STATUS_NO_MORE_FILES; + return X_STATUS_NO_SUCH_FILE; } return X_STATUS_UNSUCCESSFUL; }