summaryrefslogtreecommitdiffstats
path: root/tests/auto/other
diff options
context:
space:
mode:
authorYuhang Zhao <2546789017@qq.com>2022-07-25 10:35:29 +0800
committerYuhang Zhao <2546789017@qq.com>2022-08-03 23:24:21 +0800
commit8a0e0f8cc1f93d4f5fe205de75cacd2265017395 (patch)
tree82643a28e537e04c37ef9bd36d7fe62499f20fcf /tests/auto/other
parentfb1b20eab30096f3f9edf3da1200fbe8e2f66b2c (diff)
QtBase: Windows: Replace some deprecated API usages
Microsoft recommends to use CoInitializeEx() and SetWindowLongPtr()/GetWindowLongPtr() in new code. Use COINIT_DISABLE_OLE1DDE to avoid overhead of initializing and using obsolete technology. Pick-to: 6.4 Change-Id: I9d16943e864d4487dd4f46fd9325579c298c52b9 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'tests/auto/other')
-rw-r--r--tests/auto/other/qaccessibility/tst_qaccessibility.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/other/qaccessibility/tst_qaccessibility.cpp b/tests/auto/other/qaccessibility/tst_qaccessibility.cpp
index fa9f2a5866..89ef57e29b 100644
--- a/tests/auto/other/qaccessibility/tst_qaccessibility.cpp
+++ b/tests/auto/other/qaccessibility/tst_qaccessibility.cpp
@@ -3817,7 +3817,7 @@ void tst_QAccessibility::bridgeTest()
POINT pt{nativePos.x(), nativePos.y()};
// Initialize COM stuff.
- HRESULT hr = CoInitialize(nullptr);
+ HRESULT hr = CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED | COINIT_DISABLE_OLE1DDE);
QVERIFY(SUCCEEDED(hr));
// Get UI Automation interface.