This commit is contained in:
gibbed 2014-01-18 06:07:05 -08:00
parent 40178cb22d
commit 7cb71c6b9f
1 changed files with 1 additions and 2 deletions

View File

@ -119,8 +119,7 @@ X_STATUS HostPathEntry::QueryDirectory(XDirectoryInfo* out_info, size_t length,
return X_STATUS_UNSUCCESSFUL; return X_STATUS_UNSUCCESSFUL;
} }
do do {
{
size_t file_name_length = wcslen(ffd.cFileName); size_t file_name_length = wcslen(ffd.cFileName);
if (((uint8_t*)&((XDirectoryInfo*)current_buf)->file_name[0]) + wcslen(ffd.cFileName) > end) { if (((uint8_t*)&((XDirectoryInfo*)current_buf)->file_name[0]) + wcslen(ffd.cFileName) > end) {
break; break;