diff options
author | George Hazan <george.hazan@gmail.com> | 2012-09-23 18:57:47 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-09-23 18:57:47 +0000 |
commit | e36071cebf95c1ae5b806c17b259619da32f0e72 (patch) | |
tree | dab42f3c93be600863b3ce5584160201b25cab25 /plugins/CrashDumper | |
parent | b783dd216780850e01c47a67c4773f367eee35cd (diff) |
fix for a crash when CrashDumper is started via /svc
git-svn-id: http://svn.miranda-ng.org/main/trunk@1637 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CrashDumper')
-rw-r--r-- | plugins/CrashDumper/src/crshdmp.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/plugins/CrashDumper/src/crshdmp.cpp b/plugins/CrashDumper/src/crshdmp.cpp index fcaee71f6b..18f78be3eb 100644 --- a/plugins/CrashDumper/src/crshdmp.cpp +++ b/plugins/CrashDumper/src/crshdmp.cpp @@ -248,13 +248,9 @@ static int ModulesLoaded(WPARAM, LPARAM) profname = Utils_ReplaceVarsT(_T("%miranda_profilename%.dat"));
if (ServiceExists(MS_FOLDERS_REGISTER_PATH))
- {
- profpath = _T("%miranda_userdata%");
- }
+ profpath = mir_tstrdup( _T("%miranda_userdata%"));
else
- {
profpath = Utils_ReplaceVarsT(_T("%miranda_userdata%"));
- }
crs_sntprintf(CrashLogFolder, MAX_PATH, TEXT("%s\\CrashLog"), profpath);
crs_sntprintf(VersionInfoFolder, MAX_PATH, TEXT("%s"), profpath);
@@ -416,13 +412,9 @@ extern "C" int __declspec(dllexport) Unload(void) DestroyExceptionHandler();
- if (!_tcsstr(profpath, _T("%miranda")))
- {
- mir_free(profpath);
- }
+ mir_free(profpath);
mir_free(profname);
mir_free(vertxt);
-
return 0;
}
|