From 6627b1880ba9626ee195afbd377dc8dc72c998e0 Mon Sep 17 00:00:00 2001 From: leo Date: Sun, 18 Mar 2012 21:00:54 +0000 Subject: [PATCH] Added message when failed to write library files. --- win/Libdlg.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/win/Libdlg.cpp b/win/Libdlg.cpp index b769a517..d9473776 100644 --- a/win/Libdlg.cpp +++ b/win/Libdlg.cpp @@ -207,7 +207,10 @@ bool CLibraryDlg::ImportPieces(const ObjArray& FileList) } if ((!DiskIdx.Open(file1, "wb")) || (!DiskBin.Open(file2, "wb"))) + { + AfxMessageBox("Failed to open file for writing.", MB_ICONERROR | MB_OK); return false; + } strcpy(file1, Library->GetLibraryPath()); strcat(file1, "pieces-b.old");