Commit 67b06ecb authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

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

parent 73b16d47
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment