fusion/tests: Simplify the check for an empty string (PVS-Studio).
This commit is contained in:
parent
bbff30f30e
commit
159192cdb4
|
@ -425,7 +425,7 @@ static void test_CreateAssemblyNameObject(void)
|
|||
str[0] = '\0';
|
||||
hr = IAssemblyName_GetName(name, &size, str);
|
||||
ok(hr == S_OK, "Expected S_OK, got %08x\n", hr);
|
||||
ok(lstrlenW(str) == 0, "Expected empty name\n");
|
||||
ok(!str[0], "Expected empty name\n");
|
||||
ok(size == 0, "Expected 0, got %d\n", size);
|
||||
|
||||
hi = 0xbeefcace;
|
||||
|
@ -461,7 +461,7 @@ static void test_CreateAssemblyNameObject(void)
|
|||
str[0] = '\0';
|
||||
hr = IAssemblyName_GetName(name, &size, str);
|
||||
ok(hr == S_OK, "Expected S_OK, got %08x\n", hr);
|
||||
ok(lstrlenW(str) == 0, "Expected empty name\n");
|
||||
ok(!str[0], "Expected empty name\n");
|
||||
ok(size == 1, "Expected 1, got %d\n", size);
|
||||
|
||||
hi = 0xbeefcace;
|
||||
|
|
Loading…
Reference in New Issue