Marcus Meissner : msi/tests: Reduce buffer to size of string written.

Alexandre Julliard julliard at winehq.org
Mon Sep 15 06:54:56 CDT 2008


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

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Sun Sep 14 12:07:15 2008 +0200

msi/tests: Reduce buffer to size of string written.

---

 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 a3f4083..3f2b0fc 100644
--- a/dlls/msi/tests/install.c
+++ b/dlls/msi/tests/install.c
@@ -2109,7 +2109,7 @@ static void test_readonlyfile(void)
     file = CreateFile(path, GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE,
                       NULL, CREATE_NEW, FILE_ATTRIBUTE_READONLY, NULL);
 
-    WriteFile(file, "readonlyfile", 20, &size, NULL);
+    WriteFile(file, "readonlyfile", strlen("readonlyfile"), &size, NULL);
     CloseHandle(file);
 
     r = MsiInstallProductA(msifile, NULL);




More information about the wine-cvs mailing list