From 012b0c230af846aee39e1fb409d1dc0e3892384e Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> Date: Sun, 5 Dec 2010 12:38:33 +0000 Subject: Fixed self update issues git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@580 4f64403b-2f21-0410-a795-97e2b3489a10 --- updater/extern.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'updater/extern.cpp') diff --git a/updater/extern.cpp b/updater/extern.cpp index 0c7f8c0..d33e0c2 100644 --- a/updater/extern.cpp +++ b/updater/extern.cpp @@ -273,7 +273,7 @@ void MoveFiles(HANDLE hLogFile, TCHAR *src_folder, TCHAR *dst_folder, TCHAR *bac DeleteFile(szBackupFileName); if(!MoveFile(szNewFileName, szBackupFileName)) { - // MessageBox(0, szNewFileName, "Could not backup!", MB_OK | MB_ICONWARNING); + // MessageBox(0, szNewFileName, __T("Could not backup!"), MB_OK | MB_ICONWARNING); } } else @@ -281,7 +281,7 @@ void MoveFiles(HANDLE hLogFile, TCHAR *src_folder, TCHAR *dst_folder, TCHAR *bac move_file = true; if (!DeleteFile(szNewFileName)) { - // MessageBox(0, szNewFileName, "Could not delete!", MB_OK | MB_ICONWARNING); + // MessageBox(0, szNewFileName, _T("Could not delete!"), MB_OK | MB_ICONWARNING); } } @@ -289,10 +289,10 @@ void MoveFiles(HANDLE hLogFile, TCHAR *src_folder, TCHAR *dst_folder, TCHAR *bac { if (!MoveFile(szOldFileName, szNewFileName)) { - //MessageBox(0, szOldFileName, "Could not move!", MB_OK | MB_ICONWARNING); + //MessageBox(0, szOldFileName, _T("Could not move!"), MB_OK | MB_ICONWARNING); // try a copy - possibly win98 etc. will not move the updater.dll when it is being used by this process - CopyFile(szOldFileName, szNewFileName, TRUE); + CopyFile(szOldFileName, szNewFileName, FALSE); DeleteFile(szOldFileName); // docs say it is marked for delete and actually removed when the last handle is closed...hmm } } -- cgit v1.2.3