summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2012-06-18 16:56:25 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2012-06-18 16:56:25 +0000
commit03fc9c0f05bbb6e03385c1a059ba0811da8154c2 (patch)
tree307df685ba239e83323cd417239a9b8fad6e9038 /plugins
parentd055832390e754ec8f1063f068629f3891cf92a3 (diff)
Crash Dumper:
-removed support for old versions *Store VersionsInfo in %miranda_userdata%, because %miranda_path% makes trouble with UAC git-svn-id: http://svn.miranda-ng.org/main/trunk@475 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Svc_crshdmp/crshdmp.cpp28
1 files changed, 5 insertions, 23 deletions
diff --git a/plugins/Svc_crshdmp/crshdmp.cpp b/plugins/Svc_crshdmp/crshdmp.cpp
index 2bd26df7f0..fb71d68807 100644
--- a/plugins/Svc_crshdmp/crshdmp.cpp
+++ b/plugins/Svc_crshdmp/crshdmp.cpp
@@ -37,7 +37,6 @@ HMODULE hRichModule;
TCHAR* vertxt;
TCHAR* profname;
TCHAR* profpath;
-TCHAR* mirpath;
TCHAR CrashLogFolder[MAX_PATH];
TCHAR VersionInfoFolder[MAX_PATH];
@@ -265,34 +264,18 @@ static int ModulesLoaded(WPARAM, LPARAM)
CallService(MS_SYSTEM_GETVERSIONTEXT, (WPARAM)SIZEOF(temp), (LPARAM)temp);
crs_a2t(vertxt, temp);
- if (CallService(MS_SYSTEM_GETVERSION, 0, 0) >= PLUGIN_MAKE_VERSION(0,9,0,12))
+ profname = Utils_ReplaceVarsT(_T("%miranda_profilename%.dat"));
+ if (ServiceExists(MS_FOLDERS_REGISTER_PATH))
{
- profname = Utils_ReplaceVarsT(_T("%miranda_profilename%.dat"));
- if (ServiceExists(MS_FOLDERS_REGISTER_PATH))
- {
- profpath = _T("%miranda_userdata%");
- mirpath = _T("%miranda_path%");
- }
- else
- {
- profpath = Utils_ReplaceVarsT(_T("%miranda_userdata%"));
- mirpath = Utils_ReplaceVarsT(_T("%miranda_path%"));
- }
+ profpath = _T("%miranda_userdata%");
}
else
{
- CallService(MS_DB_GETPROFILENAME, SIZEOF(temp), (LPARAM)temp);
- crs_a2t(profname, temp);
-
- CallService(MS_DB_GETPROFILEPATH, SIZEOF(temp), (LPARAM)temp);
- crs_a2t(profpath, temp);
-
- CallService(MS_DB_GETPROFILEPATH, SIZEOF(temp), (LPARAM)temp);
- crs_a2t(mirpath, temp);
+ profpath = Utils_ReplaceVarsT(_T("%miranda_userdata%"));
}
crs_sntprintf(CrashLogFolder, MAX_PATH, TEXT("%s\\CrashLog"), profpath);
- crs_sntprintf(VersionInfoFolder, MAX_PATH, TEXT("%s"), mirpath);
+ crs_sntprintf(VersionInfoFolder, MAX_PATH, TEXT("%s"), profpath);
SetExceptionHandler();
@@ -458,7 +441,6 @@ extern "C" int __declspec(dllexport) Unload(void)
if (!_tcsstr(profpath, _T("%miranda")))
{
mir_free(profpath);
- mir_free(mirpath);
}
mir_free(profname);
mir_free(vertxt);