Added message when failed to write library files.

This commit is contained in:
leo 2012-03-18 21:00:54 +00:00
parent 40efba8379
commit 6627b1880b

View file

@ -207,7 +207,10 @@ bool CLibraryDlg::ImportPieces(const ObjArray<String>& FileList)
} }
if ((!DiskIdx.Open(file1, "wb")) || (!DiskBin.Open(file2, "wb"))) if ((!DiskIdx.Open(file1, "wb")) || (!DiskBin.Open(file2, "wb")))
{
AfxMessageBox("Failed to open file for writing.", MB_ICONERROR | MB_OK);
return false; return false;
}
strcpy(file1, Library->GetLibraryPath()); strcpy(file1, Library->GetLibraryPath());
strcat(file1, "pieces-b.old"); strcat(file1, "pieces-b.old");