* syscalls.cc (lseek64): Fix debug_printf format string.

(truncate64): Ditto.

	* fhandler.cc (fhandler_base::lseek): Force res to -1 on error.
This commit is contained in:
Corinna Vinschen
2004-04-21 08:16:13 +00:00
parent c55888059d
commit b7ede86cfe
3 changed files with 12 additions and 2 deletions

View File

@ -1090,6 +1090,7 @@ fhandler_base::lseek (_off64_t offset, int whence)
if (res == INVALID_SET_FILE_POINTER && GetLastError ())
{
__seterrno ();
res = -1;
}
else
{