Hans Leidekker : msi/tests: Don't check more bytes than written to the file .

Alexandre Julliard julliard at winehq.org
Tue Dec 1 09:19:43 CST 2009


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

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Tue Dec  1 11:34:07 2009 +0100

msi/tests: Don't check more bytes than written to the file.

---

 dlls/msi/tests/install.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/msi/tests/install.c b/dlls/msi/tests/install.c
index a007538..ee7e85b 100644
--- a/dlls/msi/tests/install.c
+++ b/dlls/msi/tests/install.c
@@ -2849,7 +2849,7 @@ static void test_readonlyfile_cab(void)
         ReadFile(file, buf, sizeof(buf) - 1, &size, NULL);
         CloseHandle(file);
     }
-    ok( !lstrcmp( buf, "maximus" ), "Expected file to be overwritten, got '%s'\n", buf );
+    ok(!memcmp( buf, "maximus", sizeof("maximus")-1 ), "Expected file to be overwritten, got '%s'\n", buf);
     ok(delete_pf("msitest\\maximus", TRUE), "File not installed\n");
     ok(delete_pf("msitest", FALSE), "File not installed\n");
 




More information about the wine-cvs mailing list