8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 06:03:02 +01:00

Fixed bugs in the interactive mode on Windows.

This commit is contained in:
dimitr 2007-02-08 17:27:26 +00:00
parent 231c83c928
commit 83e624efbd

View File

@ -793,15 +793,14 @@ void nbackup::restore_database(int filecount, const char* const* files)
return; return;
} }
try { try {
open_backup_scan(); #ifdef WIN_NT
if (curLevel)
#endif
open_backup_scan();
break; break;
} catch (const std::exception& e) { } catch (const std::exception& e) {
printf("%s\n", e.what()); printf("%s\n", e.what());
} }
#ifdef WIN_NT
if (curLevel)
close_backup();
#endif
} }
} }
else { else {
@ -906,7 +905,10 @@ void nbackup::restore_database(int filecount, const char* const* files)
// We are likely to have normal database here // We are likely to have normal database here
delete_database = false; delete_database = false;
} }
close_backup(); #ifdef WIN_NT
if (curLevel)
#endif
close_backup();
curLevel++; curLevel++;
} }
} catch(const std::exception& ex) { } catch(const std::exception& ex) {