forked from Mirrors/wine-wine
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
parent
77e6bd13b6
commit
237ec64807
|
@ -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. */
|
* or have undesired side effects should go here. */
|
||||||
UINT WINAPI main_test(MSIHANDLE hinst)
|
UINT WINAPI main_test(MSIHANDLE hinst)
|
||||||
{
|
{
|
||||||
|
UINT res;
|
||||||
IUnknown *unk = NULL;
|
IUnknown *unk = NULL;
|
||||||
HRESULT hres;
|
HRESULT hres;
|
||||||
|
|
||||||
|
@ -65,6 +66,10 @@ UINT WINAPI main_test(MSIHANDLE hinst)
|
||||||
|
|
||||||
if (unk) IUnknown_Release(unk);
|
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;
|
return ERROR_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue