Corrected HostPathEntry::QueryDirectory return value when the first search fails.

This commit is contained in:
gibbed 2015-05-27 14:36:59 -05:00
parent 8244409501
commit 4280ae8adc
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}