diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-26 20:07:10 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-26 20:07:10 +0000 |
commit | d75e347b281f94e536fde58374a36ec0928efaa7 (patch) | |
tree | 25c1a2f5aea81235007a7bd950030c77ec3921cc /src/modules/utils/utils.cpp | |
parent | 43ba813ab1bf74c75e426058d7e235f62b0fff52 (diff) |
less perversive way of restarting Miranda
git-svn-id: http://svn.miranda-ng.org/main/trunk@1203 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/utils/utils.cpp')
-rw-r--r-- | src/modules/utils/utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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;
|