diff options
Diffstat (limited to 'worldtime/WorldTime.cpp')
-rw-r--r-- | worldtime/WorldTime.cpp | 8 |
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;
}
|