From ffadc5b45ff4d5de51a46d885a4c0a762a17cfd8 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> Date: Tue, 2 Jun 2009 04:46:28 +0000 Subject: Fixed updater failures on some versions of Windows git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@463 4f64403b-2f21-0410-a795-97e2b3489a10 --- updater/updater.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'updater/updater.cpp') diff --git a/updater/updater.cpp b/updater/updater.cpp index 154d0b4..1379d8d 100644 --- a/updater/updater.cpp +++ b/updater/updater.cpp @@ -247,7 +247,7 @@ extern "C" int __declspec(dllexport) Load(PLUGINLINK *link) */ mainThreadId = GetCurrentThreadId(); - DuplicateHandle( GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &mainThread, THREAD_SET_CONTEXT, FALSE, 0 ); + DuplicateHandle( GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &mainThread, 0, FALSE, DUPLICATE_SAME_ACCESS); // save global status from clist - will be restored after update check if that option is enabled, or in modules loaded if not options.start_offline = (DBGetContactSettingByte(0, MODULE, "StartOffline", 1) == 1); // load option here - rest loading in modulesloaded -- cgit v1.2.3