diff --git a/modules/rostests/apitests/kernel32/SetComputerNameExW.c b/modules/rostests/apitests/kernel32/SetComputerNameExW.c index fc55c96f150..50192654005 100644 --- a/modules/rostests/apitests/kernel32/SetComputerNameExW.c +++ b/modules/rostests/apitests/kernel32/SetComputerNameExW.c @@ -49,9 +49,9 @@ START_TEST(SetComputerNameExW) /* Open keys */ hKeyHN = OpenHostNameKey(); - ok(hKeyHN, "hKeyHN is NULL\n"); + ok(hKeyHN != NULL, "hKeyHN is NULL\n"); hKeyCN = OpenComputerNameKey(); - ok(hKeyCN, "hKeyCN is NULL\n"); + ok(hKeyCN != NULL, "hKeyCN is NULL\n"); if (!hKeyHN || !hKeyCN) { if (hKeyHN)