From 03e3e4ebe0fee7bbe8014014b77a21d22cc090a8 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> Date: Tue, 6 Apr 2010 00:55:48 +0000 Subject: 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 --- 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 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); -- cgit v1.2.3