From 03fc9c0f05bbb6e03385c1a059ba0811da8154c2 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Mon, 18 Jun 2012 16:56:25 +0000 Subject: 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 --- plugins/Svc_crshdmp/crshdmp.cpp | 28 +++++----------------------- 1 file changed, 5 insertions(+), 23 deletions(-) (limited to 'plugins/Svc_crshdmp') 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); -- cgit v1.2.3