Nikolay Sivov : ole32: Some tests for IMoniker::IsRunning with NULL args.

Alexandre Julliard julliard at winehq.org
Fri Jan 9 09:52:12 CST 2009


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

Author: Nikolay Sivov <bunglehead at gmail.com>
Date:   Thu Jan  8 19:39:04 2009 +0300

ole32: Some tests for IMoniker::IsRunning with NULL args.

---

 dlls/ole32/tests/moniker.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/dlls/ole32/tests/moniker.c b/dlls/ole32/tests/moniker.c
index b959e74..3416985 100644
--- a/dlls/ole32/tests/moniker.c
+++ b/dlls/ole32/tests/moniker.c
@@ -1332,6 +1332,9 @@ static void test_class_moniker(void)
     ok_ole_success(hr, CreateBindCtx);
 
     /* IsRunning test */
+    hr = IMoniker_IsRunning(moniker, NULL, NULL, NULL);
+    ok(hr == E_NOTIMPL, "IMoniker_IsRunning should return E_NOTIMPL, not 0x%08x\n", hr);
+
     hr = IMoniker_IsRunning(moniker, bindctx, NULL, NULL);
     ok(hr == E_NOTIMPL, "IMoniker_IsRunning should return E_NOTIMPL, not 0x%08x\n", hr);
 
@@ -1461,6 +1464,10 @@ static void test_item_moniker(void)
     ok_ole_success(hr, CreateBindCtx);
 
     /* IsRunning test */
+    hr = IMoniker_IsRunning(moniker, NULL, NULL, NULL);
+    todo_wine
+    ok(hr == E_INVALIDARG, "IMoniker_IsRunning should return E_INVALIDARG, not 0x%08x\n", hr);
+
     hr = IMoniker_IsRunning(moniker, bindctx, NULL, NULL);
     ok(hr == S_FALSE, "IMoniker_IsRunning should return S_FALSE, not 0x%08x\n", hr);
 
@@ -1593,6 +1600,10 @@ static void test_generic_composite_moniker(void)
     ok_ole_success(hr, CreateBindCtx);
 
     /* IsRunning test */
+    hr = IMoniker_IsRunning(moniker, NULL, NULL, NULL);
+    todo_wine
+    ok(hr == E_INVALIDARG, "IMoniker_IsRunning should return E_INVALIDARG, not 0x%08x\n", hr);
+
     hr = IMoniker_IsRunning(moniker, bindctx, NULL, NULL);
     todo_wine
     ok(hr == S_FALSE, "IMoniker_IsRunning should return S_FALSE, not 0x%08x\n", hr);




More information about the wine-cvs mailing list