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

This commit is contained in:
Marcus Meissner 2008-09-14 12:07:15 +02:00 committed by Alexandre Julliard
parent 73b16d47ad
commit 67b06ecba5
1 changed files with 1 additions and 1 deletions

View File

@ -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);