QueryDirectory for STFS.

This commit is contained in:
Ben Vanik
2014-01-19 01:46:54 -08:00
parent 7da2ad30b0
commit 268bbf105d
5 changed files with 71 additions and 30 deletions

View File

@@ -76,11 +76,7 @@ X_STATUS HostPathEntry::QueryInfo(XFileInfo* out_info) {
X_STATUS HostPathEntry::QueryDirectory(
XDirectoryInfo* out_info, size_t length, bool restart) {
XEASSERTNOTNULL(out_info);
if (length < sizeof(XDirectoryInfo)) {
return X_STATUS_INFO_LENGTH_MISMATCH;
}
memset(out_info, 0, length);
xe_zero_struct(out_info, length);
WIN32_FIND_DATA ffd;