[PATCH resend 5/5] msi/tests: Add a test for MsiGetDatabaseState() called from a custom action.

Zebediah Figura z.figura12 at gmail.com
Fri Nov 24 10:36:56 CST 2017


Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 dlls/msi/tests/custom.dll/main.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dlls/msi/tests/custom.dll/main.c b/dlls/msi/tests/custom.dll/main.c
index d174c6e..3730e3a 100644
--- a/dlls/msi/tests/custom.dll/main.c
+++ b/dlls/msi/tests/custom.dll/main.c
@@ -60,6 +60,7 @@ BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, void *reserved)
  * or have undesired side effects should go here. */
 UINT WINAPI main_test(MSIHANDLE hinst)
 {
+    UINT res;
     IUnknown *unk = NULL;
     HRESULT hres;
 
@@ -69,6 +70,10 @@ UINT WINAPI main_test(MSIHANDLE hinst)
 
     if (unk) IUnknown_Release(unk);
 
+    /* Test MsiGetDatabaseState() */
+    res = MsiGetDatabaseState(hinst);
+    todo_wine_ok(hinst, res == MSIDBSTATE_ERROR, "expected MSIDBSTATE_ERROR, got %u\n", res);
+
     return ERROR_SUCCESS;
 }
 
-- 
2.7.4




More information about the wine-devel mailing list