[WINESYNC] 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>

wine commit id 4661c8d45b8f4b4b2adfb157bb16ce3466bc00f0 by Zebediah Figura <z.figura12@gmail.com>
This commit is contained in:
winesync 2022-03-13 19:05:09 +01:00 committed by Mark Jansen
parent ea5d4e807c
commit be64b5c843
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B

View file

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