On 11 Mar 2002 20:57:53 -0500, Jeff Trawick wrote:
>The following changes may be appropriate for Win32 and OS/2:
>
>Index: file_io/os2/seek.c
>===================================================================
>RCS file: /home/cvspublic/apr/file_io/os2/seek.c,v
>retrieving revision 1.19
>diff -u -r1.19 seek.c
>--- file_io/os2/seek.c 28 Aug 2001 16:41:14 -0000 1.19
>+++ file_io/os2/seek.c 12 Mar 2002 01:58:29 -0000
>@@ -76,8 +76,10 @@
> } else {
> rc = DosSetFilePtr(thefile->filedes, pos, FILE_BEGIN,
> &thefile->filePtr );
>
>- if ( !rc )
>+ if ( !rc ) {
> thefile->bufpos = thefile->dataRead = 0;
>+ thefile->filePtr = pos;
>+ }
> }
>
> return APR_OS2_STATUS(rc);
This bit isn't necessary. DosSetFilePtr() stores the new file position in
the last parameter so thefile->filePtr is already set.
--
______________________________________________________________________________
| Brian Havard | "He is not the messiah! |
| [EMAIL PROTECTED] | He's a very naughty boy!" - Life of Brian |
------------------------------------------------------------------------------