msi/tests: Add a test for MsiGetDatabaseState() called from a custom action.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Zebediah Figura 2018-02-14 20:54:56 -06:00 committed by Alexandre Julliard
parent 77e6bd13b6
commit 237ec64807
1 changed files with 5 additions and 0 deletions

View File

@ -56,6 +56,7 @@ static void ok_(MSIHANDLE hinst, int todo, const char *file, int line, int condi
* or have undesired side effects should go here. */
UINT WINAPI main_test(MSIHANDLE hinst)
{
UINT res;
IUnknown *unk = NULL;
HRESULT hres;
@ -65,6 +66,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;
}