Ticket #9248: os_file_functions.patch

File os_file_functions.patch, 766 bytes (added by tomas.kotal@…, 9 years ago)

Patch

  • os_file_functions.hpp

    old new  
    273273            //If it's a directory, go recursive
    274274            if(FileInformation.dwFileAttributes & winapi::file_attribute_directory){
    275275               // Delete subdirectory
    276                if(!delete_subdirectories_recursive(strFilePath, dont_delete_this, count+1))
     276               if(!delete_subdirectories_recursive(strFilePath, dont_delete_this, count+1)) {
     277                  // Don't forget to close handle
     278                  winapi::find_close(hFile);               
    277279                  return false;
     280               }
    278281            }
    279282            //If it's a file, just delete it
    280283            else{