From edc078d7633b2e6fa8c54fb6046c1cd4b51ebdd9 Mon Sep 17 00:00:00 2001 From: angie Date: Sun, 10 Sep 2023 09:52:07 -0300 Subject: [PATCH] Fix SetFilePointerEx to return FALSE instead of INVALID_SET_FILE_POINTER --- dll/kernel32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dll/kernel32.cpp b/dll/kernel32.cpp index 5c1ca27..f7b50a1 100644 --- a/dll/kernel32.cpp +++ b/dll/kernel32.cpp @@ -917,7 +917,7 @@ namespace kernel32 { wibo::lastError = ERROR_NEGATIVE_SEEK; else wibo::lastError = ERROR_INVALID_PARAMETER; - return INVALID_SET_FILE_POINTER; + return FALSE; } r = ftell(fp);