From d75e347b281f94e536fde58374a36ec0928efaa7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 26 Jul 2012 20:07:10 +0000 Subject: less perversive way of restarting Miranda git-svn-id: http://svn.miranda-ng.org/main/trunk@1203 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/utils/utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/utils/utils.cpp b/src/modules/utils/utils.cpp index 9d553b333b..c4d88915be 100644 --- a/src/modules/utils/utils.cpp +++ b/src/modules/utils/utils.cpp @@ -422,7 +422,7 @@ static INT_PTR RestartMiranda(WPARAM, LPARAM) STARTUPINFO si = { 0 }; si.cb = sizeof(si); GetModuleFileName(NULL, mirandaPath, SIZEOF(mirandaPath)); - mir_sntprintf(cmdLine, SIZEOF(cmdLine), _T("/restart:%d"), GetCurrentProcessId()); + mir_sntprintf(cmdLine, SIZEOF(cmdLine), _T("\"%s\" /restart:%d"), mirandaPath, GetCurrentProcessId()); CallService("CloseAction", 0, 0); CreateProcess(mirandaPath, cmdLine, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi); return 0; -- cgit v1.2.3