Commit 159192cd authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

fusion/tests: Simplify the check for an empty string (PVS-Studio).

parent bbff30f3
...@@ -425,7 +425,7 @@ static void test_CreateAssemblyNameObject(void) ...@@ -425,7 +425,7 @@ static void test_CreateAssemblyNameObject(void)
str[0] = '\0'; str[0] = '\0';
hr = IAssemblyName_GetName(name, &size, str); hr = IAssemblyName_GetName(name, &size, str);
ok(hr == S_OK, "Expected S_OK, got %08x\n", hr); 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); ok(size == 0, "Expected 0, got %d\n", size);
hi = 0xbeefcace; hi = 0xbeefcace;
...@@ -461,7 +461,7 @@ static void test_CreateAssemblyNameObject(void) ...@@ -461,7 +461,7 @@ static void test_CreateAssemblyNameObject(void)
str[0] = '\0'; str[0] = '\0';
hr = IAssemblyName_GetName(name, &size, str); hr = IAssemblyName_GetName(name, &size, str);
ok(hr == S_OK, "Expected S_OK, got %08x\n", hr); 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); ok(size == 1, "Expected 1, got %d\n", size);
hi = 0xbeefcace; hi = 0xbeefcace;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment