summaryrefslogtreecommitdiff
path: root/updater/extern.cpp
diff options
context:
space:
mode:
author(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2010-12-05 12:38:33 +0000
committer(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2010-12-05 12:38:33 +0000
commit012b0c230af846aee39e1fb409d1dc0e3892384e (patch)
treedcf94d0da608bb9b1e8f824c4215d8c3bba56fe2 /updater/extern.cpp
parentc85beefd3a445d56a59c3b38426cec3986746446 (diff)
Fixed self update issues
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@580 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'updater/extern.cpp')
-rw-r--r--updater/extern.cpp8
1 files changed, 4 insertions, 4 deletions
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
}
}