Michael Stefaniuc : shell32/tests: Fix a copy and paste error (PVS-Studio) .

Alexandre Julliard julliard at wine.codeweavers.com
Thu Nov 20 09:54:15 CST 2014


Module: wine
Branch: master
Commit: 61ed9130bf5d76ede29ef83c99fccb14ad93247a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=61ed9130bf5d76ede29ef83c99fccb14ad93247a

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Thu Nov 20 13:43:54 2014 +0100

shell32/tests: Fix a copy and paste error (PVS-Studio).

---

 dlls/shell32/tests/shlfileop.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/shell32/tests/shlfileop.c b/dlls/shell32/tests/shlfileop.c
index 51de635..07e4ee2 100644
--- a/dlls/shell32/tests/shlfileop.c
+++ b/dlls/shell32/tests/shlfileop.c
@@ -251,7 +251,7 @@ static void test_get_file_info(void)
     ok(rc == 1, "SHGetFileInfoA(c:\\nonexistent) should return 1, got 0x%x\n", rc);
     if (rc)
     {
-        ok(strcpy(shfi.szDisplayName, "dummy") != 0, "SHGetFileInfoA(c:\\nonexistent) displayname is not set\n");
+        ok(strcmp(shfi.szDisplayName, "dummy"), "SHGetFileInfoA(c:\\nonexistent) displayname is not set\n");
         ok(shfi.iIcon != 0xdeadbeef, "SHGetFileInfoA(c:\\nonexistent) iIcon is not set\n");
     }
 




More information about the wine-cvs mailing list