Mariusz Pluciński : gameux/tests: Add test of IGameExplorer2 creation.

Alexandre Julliard julliard at winehq.org
Tue Aug 17 11:31:19 CDT 2010


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

Author: Mariusz Pluciński <vshader at gmail.com>
Date:   Mon Aug 16 09:59:45 2010 +0200

gameux/tests: Add test of IGameExplorer2 creation.

---

 dlls/gameux/tests/gameexplorer.c |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/dlls/gameux/tests/gameexplorer.c b/dlls/gameux/tests/gameexplorer.c
index b87fd02..8498fe1 100644
--- a/dlls/gameux/tests/gameexplorer.c
+++ b/dlls/gameux/tests/gameexplorer.c
@@ -1,5 +1,5 @@
 /*
- * IGameExplorer tests
+ * IGameExplorer and IGameExplorer2 tests
  *
  * Copyright (C) 2010 Mariusz Pluciński
  *
@@ -36,6 +36,7 @@ static void test_create( void )
     HRESULT hr;
 
     IGameExplorer* ge = NULL;
+    IGameExplorer2* ge2 = NULL;
 
     /* interface available up from Vista */
     hr = CoCreateInstance( &CLSID_GameExplorer, NULL, CLSCTX_INPROC_SERVER, &IID_IGameExplorer, (LPVOID*)&ge);
@@ -46,6 +47,16 @@ static void test_create( void )
     }
     else
         win_skip("IGameExplorer cannot be created\n");
+
+    /* interface available up from Win7 */
+    hr = CoCreateInstance( &CLSID_GameExplorer, NULL, CLSCTX_INPROC_SERVER, &IID_IGameExplorer2, (LPVOID*)&ge2);
+    if(ge2)
+    {
+        ok( hr == S_OK, "IGameExplorer2 creating failed (result false)\n");
+        IGameExplorer2_Release(ge2);
+    }
+    else
+        win_skip("IGameExplorer2 cannot be created\n");
 }
 
 START_TEST(gameexplorer)




More information about the wine-cvs mailing list