summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--win/Libdlg.cpp4
-rw-r--r--win/System.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/win/Libdlg.cpp b/win/Libdlg.cpp
index 0d9bf3a..bfd4420 100644
--- a/win/Libdlg.cpp
+++ b/win/Libdlg.cpp
@@ -114,7 +114,7 @@ BOOL CLibraryDlg::OnInitDialog()
m_TreeImages.Create(IDB_PARTICONS, 16, 0, RGB (0,128,128));
m_Tree.SetImageList(&m_TreeImages, TVSIL_NORMAL);
- File idx(false);
+ FileDisk idx;
char filename[LC_MAXPATH];
// Read the piece library index.
@@ -804,7 +804,7 @@ BOOL CLibraryDlg::OnCommand(WPARAM wParam, LPARAM lParam)
rename(str + "pieces.idx", str + "pieces-i.old");
rename(str + "pieces.bin", str + "pieces-b.old");
- File oldbin(false), oldidx(false), newbin(false), newidx(false);
+ FileDisk oldbin, oldidx, newbin, newidx;
if ((!oldbin.Open(str + "pieces-b.old", "rb")) ||
(!oldidx.Open(str + "pieces-i.old", "rb")) ||
(!newbin.Open(str + "pieces.bin", "wb")) ||
diff --git a/win/System.cpp b/win/System.cpp
index a5b63b1..6b81d12 100644
--- a/win/System.cpp
+++ b/win/System.cpp
@@ -142,7 +142,7 @@ UINT APIENTRY OFNOpenHookProc(HWND hdlg, UINT uiMsg, WPARAM wParam, LPARAM lPara
float fv;
char id[32];
- File file(false);
+ FileDisk file;
file.Open(filename, "rb");
file.Read(id, 32);
sscanf(strchr(id, ' '), "%f", &fv);
@@ -1590,7 +1590,7 @@ File* SystemImportClipboard()
HANDLE hData = ::GetClipboardData(ClipboardFormat);
if (hData != NULL)
{
- clip = new File(true);
+ clip = new FileMem();
BYTE* lpBuffer = (BYTE*)::GlobalLock(hData);
long nBufferSize = ::GlobalSize(hData);