12345678910111213141516
while ( searching ) { if ( _findnext( hSearch, &fInfo ) == -1 ) { if ( _get_errno( &err ) == ENOENT ) { searching = false; _set_errno( NULL ); } else { return err; } } defsNames.push_back( fInfo.name ); }