msi/tests: Fix a crash on Windows 10.

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>
This commit is contained in:
Zebediah Figura 2020-01-16 10:26:10 -06:00 committed by Alexandre Julliard
parent 932ed6bf84
commit 4661c8d45b
1 changed files with 7 additions and 8 deletions

View File

@ -2744,15 +2744,14 @@ static void test_MsiInstallProduct(void)
MsiSetInternalUI(INSTALLUILEVEL_NONE, NULL);
/* szPackagePath is NULL */
if (0) /* crashes on Win10 1709 */
{
r = MsiInstallProductA(NULL, "INSTALL=ALL");
ok(r == ERROR_INVALID_PARAMETER,
"Expected ERROR_INVALID_PARAMETER, got %d\n", r);
ok(r == ERROR_INVALID_PARAMETER, "got %u\n", r);
/* both szPackagePath and szCommandLine are NULL */
r = MsiInstallProductA(NULL, NULL);
ok(r == ERROR_INVALID_PARAMETER,
"Expected ERROR_INVALID_PARAMETER, got %d\n", r);
ok(r == ERROR_INVALID_PARAMETER, "got %u\n", r);
}
/* szPackagePath is empty */
r = MsiInstallProductA("", "INSTALL=ALL");