diff options
-rw-r--r-- | MySpace/MySpace.cpp | 2 | ||||
-rw-r--r-- | meta2/meta2.cpp | 2 | ||||
-rw-r--r-- | metacontacts/meta_main.c | 2 | ||||
-rw-r--r-- | tipper/tipper.cpp | 2 | ||||
-rw-r--r-- | worldtime/WorldTime.cpp | 2 | ||||
-rw-r--r-- | yapp/popups2.cpp | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/MySpace/MySpace.cpp b/MySpace/MySpace.cpp index e1b26f9..6f7309c 100644 --- a/MySpace/MySpace.cpp +++ b/MySpace/MySpace.cpp @@ -115,7 +115,7 @@ void SetAllOffline() { HANDLE hModulesLoaded;
extern "C" __declspec (dllexport) int Load(PLUGINLINK *link) {
- DuplicateHandle( GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &mainThread, THREAD_SET_CONTEXT, FALSE, 0 );
+ DuplicateHandle( GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &mainThread, 0, FALSE, DUPLICATE_SAME_ACCESS );
pluginLink=link;
diff --git a/meta2/meta2.cpp b/meta2/meta2.cpp index 5f48f27..72dd822 100644 --- a/meta2/meta2.cpp +++ b/meta2/meta2.cpp @@ -94,7 +94,7 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam) { HANDLE hModulesLoaded;
extern "C" __declspec (dllexport) int Load(PLUGINLINK *link) {
pluginLink=link;
- DuplicateHandle( GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &metaMainThread, THREAD_SET_CONTEXT, FALSE, 0 );
+ DuplicateHandle( GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &metaMainThread, 0, FALSE, DUPLICATE_SAME_ACCESS );
mir_getMMI(&mmi);
mir_getUTFI(&utfi);
diff --git a/metacontacts/meta_main.c b/metacontacts/meta_main.c index 62db9ba..5115c5b 100644 --- a/metacontacts/meta_main.c +++ b/metacontacts/meta_main.c @@ -169,7 +169,7 @@ int __declspec(dllexport)Load(PLUGINLINK *link) DBVARIANT dbv;
pluginLink=link;
- DuplicateHandle( GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &metaMainThread, THREAD_SET_CONTEXT, FALSE, 0 );
+ DuplicateHandle( GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &metaMainThread, 0, FALSE, DUPLICATE_SAME_ACCESS );
mir_getMMI(&mmi);
diff --git a/tipper/tipper.cpp b/tipper/tipper.cpp index 100ecf9..59a5117 100644 --- a/tipper/tipper.cpp +++ b/tipper/tipper.cpp @@ -396,7 +396,7 @@ HANDLE hEventPreShutdown, hEventModulesLoaded; extern "C" int TIPPER_API Load(PLUGINLINK *link) {
pluginLink = link;
- DuplicateHandle(GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &mainThread, THREAD_SET_CONTEXT, FALSE, 0);
+ DuplicateHandle(GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &mainThread, 0, FALSE, DUPLICATE_SAME_ACCESS);
set_codepage();
diff --git a/worldtime/WorldTime.cpp b/worldtime/WorldTime.cpp index bb5b58d..7e46359 100644 --- a/worldtime/WorldTime.cpp +++ b/worldtime/WorldTime.cpp @@ -111,7 +111,7 @@ extern "C" WORLDTIME_API int Load(PLUGINLINK *link) if(build_timezone_list()) {
- DuplicateHandle( GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &mainThread, THREAD_SET_CONTEXT, FALSE, 0 );
+ DuplicateHandle( GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &mainThread, 0, FALSE, DUPLICATE_SAME_ACCESS );
CreatePluginServices();
HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded);
diff --git a/yapp/popups2.cpp b/yapp/popups2.cpp index 80c057a..134e648 100644 --- a/yapp/popups2.cpp +++ b/yapp/popups2.cpp @@ -332,7 +332,7 @@ HANDLE hEventPreShutdown, hEventModulesLoaded; extern "C" int POPUPS2_API Load(PLUGINLINK *link) {
pluginLink = link;
- DuplicateHandle(GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &mainThread, THREAD_SET_CONTEXT, FALSE, 0);
+ DuplicateHandle(GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &mainThread, 0, FALSE, DUPLICATE_SAME_ACCESS);
set_codepage();
|