From ebe727e56d49a33eb30edd051ee8030e966edd51 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Sat, 14 Jan 2006 17:08:14 +0100 Subject: [PATCH] kernel: Make sure the file contains data for the ReadFile test. --- dlls/kernel/tests/file.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/kernel/tests/file.c b/dlls/kernel/tests/file.c index 3b39b5c1f04..3310670f271 100644 --- a/dlls/kernel/tests/file.c +++ b/dlls/kernel/tests/file.c @@ -1369,6 +1369,10 @@ static void test_read_write(void) bytes == 10, /* Win9x */ "bytes = %ld\n", bytes); + /* make sure the file contains data */ + WriteFile(hFile, "this is the test data", 21, &bytes, NULL); + SetFilePointer(hFile, 0, NULL, FILE_BEGIN); + SetLastError(12345678); bytes = 12345678; ret = ReadFile(hFile, NULL, 0, &bytes, NULL);