Alexandre Julliard : kernel: Make sure the file contains data for the ReadFile test.

Alexandre Julliard julliard at wine.codeweavers.com
Sat Jan 14 10:56:33 CST 2006


Module: wine
Branch: refs/heads/master
Commit: ebe727e56d49a33eb30edd051ee8030e966edd51
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=ebe727e56d49a33eb30edd051ee8030e966edd51

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Sat Jan 14 17:08:14 2006 +0100

kernel: Make sure the file contains data for the ReadFile test.

---

 dlls/kernel/tests/file.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/dlls/kernel/tests/file.c b/dlls/kernel/tests/file.c
index 3b39b5c..3310670 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);




More information about the wine-cvs mailing list