[PATCH] ole32/tests: Use wide string literal constants in more tests.

Esme Povirk (they/them) esme at codeweavers.com
Mon Aug 3 11:56:34 CDT 2020


-        ok(lstrcmpiW(stat.pwcsName, stmname) == 0, "expected
CONTENTS, got %s\n", wine_dbgstr_w(stat.pwcsName));
+        ok(!lstrcmpiW(stat.pwcsName, contentsW), "expected CONTENTS,
got %s\n", wine_dbgstr_w(stat.pwcsName));

I prefer the "strcmp comparison 0" style because it helps me remember
what the return value of strcmp means. I have to think about which of
strcmp and !strcmp means "equal".



More information about the wine-devel mailing list