[PATCH] reduce buffer to size of string written
Marcus Meissner
marcus at jet.franken.de
Sun Sep 14 05:07:15 CDT 2008
Hi,
20 is longer than "readonlyfile", so reduce
the size to its length.
Ciao, Marcus
---
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);
--
1.5.2.4
More information about the wine-patches
mailing list