summaryrefslogtreecommitdiff
path: root/worldtime/WorldTime.cpp
diff options
context:
space:
mode:
author(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2010-05-29 04:27:26 +0000
committer(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2010-05-29 04:27:26 +0000
commit9fb8fc3300b71abc543774f08f9150aac1670eb5 (patch)
treeaebae32ee4180feaaa79b413003dea7f6d562b56 /worldtime/WorldTime.cpp
parentbc008612f7e63b5528dc9eba2467515b921b03bb (diff)
Reduced resource usage
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@520 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'worldtime/WorldTime.cpp')
-rw-r--r--worldtime/WorldTime.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/worldtime/WorldTime.cpp b/worldtime/WorldTime.cpp
index 487eaa3..5ddf192 100644
--- a/worldtime/WorldTime.cpp
+++ b/worldtime/WorldTime.cpp
@@ -91,13 +91,10 @@ extern "C" WORLDTIME_API int Load(PLUGINLINK *link)
ccx.dwICC = ICC_DATE_CLASSES;
InitCommonControlsEx(&ccx);
- if(build_timezone_list()) {
-
- DuplicateHandle( GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &mainThread, 0, FALSE, DUPLICATE_SAME_ACCESS );
+ if(build_timezone_list())
+ {
CreatePluginServices();
-
HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded);
-
HookEvent( ME_OPT_INITIALISE, WorldTimeOptInit );
} else {
MessageBox(0, _T("Unable to read timezone information.\nPlugin disabled."), _T("World Time"), MB_ICONERROR | MB_OK);
@@ -108,7 +105,6 @@ extern "C" WORLDTIME_API int Load(PLUGINLINK *link)
extern "C" WORLDTIME_API int Unload(void)
{
- CloseHandle( mainThread );
plugwin_cleanup();
return 0;
}