Ticket #1692: BDirectory_GetNextEntry.diff

File BDirectory_GetNextEntry.diff, 380 bytes (added by anthonylee, 12 years ago)
  • src/kits/storage/Directory.cpp

     
    587587        if (error == B_OK)
    588588            error = entry->SetTo(&ref, traverse);
    589589    }
     590    if (error != B_OK && entry != NULL) {
     591        entry->Unset();
     592    }
    590593    return error;
    591594}
    592595