Huw Davies : gameux/tests: Run the MTA tests before the STA tests to avoid a crash on Windows 10.

Alexandre Julliard julliard at winehq.org
Wed Feb 1 15:26:10 CST 2017


Module: wine
Branch: master
Commit: bc84397e30d19b766d1be72f05fbcf86053fbbaa
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=bc84397e30d19b766d1be72f05fbcf86053fbbaa

Author: Huw Davies <huw at codeweavers.com>
Date:   Wed Feb  1 13:19:10 2017 +0000

gameux/tests: Run the MTA tests before the STA tests to avoid a crash on Windows 10.

Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/gameux/tests/gameexplorer.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/gameux/tests/gameexplorer.c b/dlls/gameux/tests/gameexplorer.c
index 1f25f71..1ef7a78 100644
--- a/dlls/gameux/tests/gameexplorer.c
+++ b/dlls/gameux/tests/gameexplorer.c
@@ -673,16 +673,16 @@ START_TEST(gameexplorer)
     {
         HRESULT hr;
 
-        hr = CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
+        hr = CoInitializeEx(NULL, COINIT_MULTITHREADED);
         ok(hr == S_OK, "Failed to initialize COM, hr %#x.\n", hr);
-        trace("Running apartment threaded tests.\n");
+        trace("Running multithreaded tests.\n");
         run_tests();
         if(SUCCEEDED(hr))
             CoUninitialize();
 
-        hr = CoInitializeEx(NULL, COINIT_MULTITHREADED);
+        hr = CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
         ok(hr == S_OK, "Failed to initialize COM, hr %#x.\n", hr);
-        trace("Running multithreaded tests.\n");
+        trace("Running apartment threaded tests.\n");
         run_tests();
         if(SUCCEEDED(hr))
             CoUninitialize();




More information about the wine-cvs mailing list