From: Zebediah Figura Subject: [PATCH 5/5] msi/tests: Add a test for MsiGetDatabaseState() called from a custom action. Message-Id: <1511473158-24098-2-git-send-email-z.figura12@gmail.com> Date: Thu, 23 Nov 2017 15:39:18 -0600 In-Reply-To: <1511472960-23914-1-git-send-email-z.figura12@gmail.com> References: <1511472960-23914-1-git-send-email-z.figura12@gmail.com> Signed-off-by: Zebediah Figura --- I've left off including the fix for now, since I want to fix my existing regressions before causing any new ones... 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