diff --git a/PowerEditor/src/MISC/SysMsg/SysMsg.cpp b/PowerEditor/src/MISC/SysMsg/SysMsg.cpp index 62f3b336d..3ba97b530 100644 --- a/PowerEditor/src/MISC/SysMsg/SysMsg.cpp +++ b/PowerEditor/src/MISC/SysMsg/SysMsg.cpp @@ -169,7 +169,7 @@ void systemMessage(const char *title) void printInt(int int2print) { char str[32]; - itoa(int2print, str, 10); + sprintf(str, "%d", int2print); ::MessageBox(NULL, str, "", MB_OK); } diff --git a/PowerEditor/src/winmain.cpp b/PowerEditor/src/winmain.cpp index 5f758b98e..a298dc0ff 100644 --- a/PowerEditor/src/winmain.cpp +++ b/PowerEditor/src/winmain.cpp @@ -269,10 +269,14 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR lpszCmdLine, int nCmdSh if (TheFirstOne) { -/* - Process updater("C:\\Program Files\\7-Zip\\7zFM.exe", "c:\\"); - updater.run(); -*/ + char updaterPath[MAX_PATH]; + strcpy(updaterPath, pNppParameters->getNppPath()); + strcat(updaterPath, "\\updater\\gup.exe"); + if (::PathFileExists(updaterPath)) + { + Process updater(updaterPath, "c:\\"); + updater.run(); + } } MSG msg; msg.wParam = 0;