summaryrefslogtreecommitdiff
path: root/plugins/CrashDumper/src/crshdmp.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-05-01 13:39:56 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-05-01 13:40:44 +0300
commitaf1ff0d3897352297c688785f2ca7545232858ea (patch)
treea8e2490c2562c29c9e178bd5c1bb7db646c9ac01 /plugins/CrashDumper/src/crshdmp.cpp
parent48623c7d4f34ed8f052d509f0896dd758db3d4eb (diff)
code cleaning
Diffstat (limited to 'plugins/CrashDumper/src/crshdmp.cpp')
-rw-r--r--plugins/CrashDumper/src/crshdmp.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/CrashDumper/src/crshdmp.cpp b/plugins/CrashDumper/src/crshdmp.cpp
index ba611e24d7..24fc71ca2a 100644
--- a/plugins/CrashDumper/src/crshdmp.cpp
+++ b/plugins/CrashDumper/src/crshdmp.cpp
@@ -157,13 +157,9 @@ static int ModulesLoaded(WPARAM, LPARAM)
Miranda_GetVersionText(temp, _countof(temp));
crs_a2t(vertxt, temp);
- if (ServiceExists(MS_FOLDERS_REGISTER_PATH)) {
+ if (hVerInfoFolder = FoldersRegisterCustomPathW(MODULENAME, LPGEN("Version Information"), VersionInfoFolder)) {
replaceStrW(profpath, L"%miranda_userdata%");
- // Removed because it isn't available on Load()
- // hCrashLogFolder = FoldersRegisterCustomPathW(MODULENAME, LPGEN("Crash Reports"), CrashLogFolder);
- hVerInfoFolder = FoldersRegisterCustomPathW(MODULENAME, LPGEN("Version Information"), VersionInfoFolder);
-
HookEvent(ME_FOLDERS_PATH_CHANGED, FoldersPathChanged);
FoldersPathChanged(0, 0);
}