diff options
author | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2009-06-02 04:46:28 +0000 |
---|---|---|
committer | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2009-06-02 04:46:28 +0000 |
commit | ffadc5b45ff4d5de51a46d885a4c0a762a17cfd8 (patch) | |
tree | c839233e86dc36166f3cc064408dfe662dfd7233 | |
parent | 1d8a3237e3ad8754f457a29eb705a9e6d073d200 (diff) |
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
-rw-r--r-- | updater/updater.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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
|