diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-01-25 20:07:10 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-01-25 20:07:10 +0000 |
commit | 7325c10a7921fb043253a339ab5b5c3c803bfb14 (patch) | |
tree | aee9caf5c14c7b8c36540cba14642a453c61919f /plugins/CrashDumper | |
parent | 58ac4567a402d383c3edb0749b9f2fb88b8422d6 (diff) |
- Unload Msftedit.dll after use
git-svn-id: http://svn.miranda-ng.org/main/trunk@11907 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CrashDumper')
-rw-r--r-- | plugins/CrashDumper/src/crshdmp.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/CrashDumper/src/crshdmp.cpp b/plugins/CrashDumper/src/crshdmp.cpp index e66d7796ae..253d28612e 100644 --- a/plugins/CrashDumper/src/crshdmp.cpp +++ b/plugins/CrashDumper/src/crshdmp.cpp @@ -25,6 +25,7 @@ DWORD mirandaVersion; LCID packlcid;
//HANDLE hCrashLogFolder, hVerInfoFolder;
HANDLE hVerInfoFolder;
+HMODULE hMsftedit;
TCHAR* vertxt;
TCHAR* profname;
@@ -362,7 +363,8 @@ static int PreShutdown(WPARAM, LPARAM) extern "C" int __declspec(dllexport) Load(void)
{
- if (LoadLibraryA("Msftedit.dll") == NULL)
+ hMsftedit = LoadLibrary(_T("Msftedit.dll"));
+ if (hMsftedit == NULL)
return 1;
clsdates = db_get_b(NULL, PluginName, "ClassicDates", 1) != 0;
@@ -410,6 +412,7 @@ extern "C" int __declspec(dllexport) Unload(void) mir_free(profpath);
mir_free(profname);
mir_free(vertxt);
+ FreeLibrary(hMsftedit);
return 0;
}
|