From: Hans Leidekker <hans@codeweavers.com> --- dlls/msi/tests/action.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/msi/tests/action.c b/dlls/msi/tests/action.c index abf9332c45f..82d950ce466 100644 --- a/dlls/msi/tests/action.c +++ b/dlls/msi/tests/action.c @@ -3453,8 +3453,8 @@ static void test_register_user(void) ok(res == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %ld\n", res); CHECK_REG_STR(props, "ProductID", "none"); - CHECK_REG_STR(props, "RegCompany", company); - CHECK_REG_STR(props, "RegOwner", owner); + if (company) CHECK_REG_STR(props, "RegCompany", company); + if (owner) CHECK_REG_STR(props, "RegOwner", owner); RegDeleteValueA(props, "ProductID"); RegDeleteValueA(props, "RegCompany"); @@ -3475,8 +3475,8 @@ static void test_register_user(void) ok(res == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %ld\n", res); CHECK_REG_STR(props, "ProductID", "none"); - CHECK_REG_STR(props, "RegCompany", company); - CHECK_REG_STR(props, "RegOwner", owner); + if (company) CHECK_REG_STR(props, "RegCompany", company); + if (owner) CHECK_REG_STR(props, "RegOwner", owner); RegDeleteValueA(props, "ProductID"); RegDeleteValueA(props, "RegCompany"); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/9739