Daniel Lehman : msvcrt/tests: Fix _lseek arguments.

Alexandre Julliard julliard at winehq.org
Tue Oct 29 17:41:47 CDT 2019


Module: wine
Branch: master
Commit: 0357dfbc7e4caa08d88498db5d36e7dfa393a778
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=0357dfbc7e4caa08d88498db5d36e7dfa393a778

Author: Daniel Lehman <dlehman at esri.com>
Date:   Tue Oct 29 10:04:06 2019 -0700

msvcrt/tests: Fix _lseek arguments.

Signed-off-by: Daniel Lehman <dlehman at esri.com>
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msvcrt/tests/file.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/msvcrt/tests/file.c b/dlls/msvcrt/tests/file.c
index fe62d5c385..0ed59e347e 100644
--- a/dlls/msvcrt/tests/file.c
+++ b/dlls/msvcrt/tests/file.c
@@ -2548,7 +2548,7 @@ static void test__creat(void)
         pos = _tell(fd);
         ok(pos == 6, "expected pos 6 (text mode), got %d\n", pos);
     }
-    ok(_lseek(fd, SEEK_SET, 0) == 0, "_lseek failed\n");
+    ok(_lseek(fd, 0, SEEK_SET) == 0, "_lseek failed\n");
     count = _read(fd, buf, 6);
     ok(count == 4, "_read returned %d, expected 4\n", count);
     count = count > 0 ? count > 4 ? 4 : count : 0;
@@ -2568,7 +2568,7 @@ static void test__creat(void)
         pos = _tell(fd);
         ok(pos == 4, "expected pos 4 (binary mode), got %d\n", pos);
     }
-    ok(_lseek(fd, SEEK_SET, 0) == 0, "_lseek failed\n");
+    ok(_lseek(fd, 0, SEEK_SET) == 0, "_lseek failed\n");
     count = _read(fd, buf, 6);
     ok(count == 4, "_read returned %d, expected 4\n", count);
     count = count > 0 ? count > 4 ? 4 : count : 0;




More information about the wine-cvs mailing list