diff options
author | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2010-04-06 00:55:48 +0000 |
---|---|---|
committer | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2010-04-06 00:55:48 +0000 |
commit | 03e3e4ebe0fee7bbe8014014b77a21d22cc090a8 (patch) | |
tree | 59eb86b2a5252bd336398594b21ff8a6c4252c00 /updater/extern.cpp | |
parent | 92f7a736e44f3d5199e48459daa78b89a0c9f46d (diff) |
Fixed translation issue
Removed unneeded/duplicated code (thus shaved few more kb from the dll)
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@496 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'updater/extern.cpp')
-rw-r--r-- | updater/extern.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/updater/extern.cpp b/updater/extern.cpp index 565ba63..629d1eb 100644 --- a/updater/extern.cpp +++ b/updater/extern.cpp @@ -23,7 +23,7 @@ int ExternProcess(bool restart) { // write data to file for external process to use
HANDLE hDatFile = CreateFile(data_filename, GENERIC_WRITE, FILE_SHARE_WRITE, 0, CREATE_ALWAYS, 0, 0);
if(hDatFile == INVALID_HANDLE_VALUE) {
- //MessageBox(0, Translate("Could not create data file for restart."), Translate("Error"), MB_OK | MB_ICONERROR);
+ //MessageBox(0, TranslateT("Could not create data file for restart."), TranslateT("Error"), MB_OK | MB_ICONERROR);
ShowError(TranslateT("Could not create data file for restart"));
return 1;
}
@@ -88,7 +88,7 @@ int ExternProcess(bool restart) { /*
if(!CallService(MS_SYSTEM_OKTOEXIT,0,0)) {
DeleteFile(data_filename);
- MessageBox(0, Translate("Miranda's not 'OK TO EXIT'."), Translate("Error"), MB_OK | MB_ICONERROR);
+ MessageBox(0, TranslateT("Miranda's not 'OK TO EXIT'."), TranslateT("Error"), MB_OK | MB_ICONERROR);
return;
}
*/
@@ -454,8 +454,8 @@ void CALLBACK ExternalUpdate(HWND hwnd, HINSTANCE hInstance, LPSTR lpszCmdLine, #endif
TCHAR szArgs[MAX_PATH], *temp_str;
//wsprintf(szArgs, "\"%s\" \"%s\"", db_path, db_name);
- mir_sntprintf(szArgs, SIZEOF(szArgs), _T("\"%s\" \"%s\""), mir_exe, temp_str = GetTStringACP(db_path)); // includes name, dummy instead of executable?
- free(temp_str);
+ mir_sntprintf(szArgs, SIZEOF(szArgs), _T("\"%s\" \"%s\""), mir_exe, temp_str = mir_a2t(db_path)); // includes name, dummy instead of executable?
+ mir_free(temp_str);
//wsprintf(szArgs, "\"%s\"", db_name);
|