Alistair Leslie-Hughes : msdasql: Correct ICommandText Execute test.

Alexandre Julliard julliard at winehq.org
Tue Nov 2 17:27:44 CDT 2021


Module: wine
Branch: master
Commit: 6649396abe04a0630c7d5450f49607235f041aab
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=6649396abe04a0630c7d5450f49607235f041aab

Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date:   Tue Nov  2 13:21:21 2021 +1100

msdasql: Correct ICommandText Execute test.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msdasql/tests/provider.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/dlls/msdasql/tests/provider.c b/dlls/msdasql/tests/provider.c
index df642a6a637..8b8d8e4b494 100644
--- a/dlls/msdasql/tests/provider.c
+++ b/dlls/msdasql/tests/provider.c
@@ -244,12 +244,16 @@ static void test_command_rowset(IUnknown *cmd)
     if (unk)
         IUnknown_Release(unk);
 
-    affected = 9999;
     hr = ICommandText_SetCommandText(comand_text, &DBGUID_DEFAULT, L"select * from testing");
     ok(hr == S_OK, "got 0x%08x\n", hr);
-    if (hr == S_OK && unk)
+
+    affected = 9999;
+    hr = ICommandText_Execute(comand_text, NULL, &IID_IRowset, NULL, &affected, &unk);
+    ok(hr == S_OK, "got 0x%08x\n", hr);
+    ok(unk != NULL, "Unexepcted value\n");
+    if (hr == S_OK)
     {
-        ok(affected == 0, "wrong affected value\n");
+        ok(affected == -1, "wrong affected value\n");
 
         hr = IUnknown_QueryInterface(unk, &IID_IRowset, (void**)&rowset);
         ok(hr == S_OK, "got 0x%08x\n", hr);




More information about the wine-cvs mailing list