diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 2006-04-12 14:26:36 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 2006-04-12 14:26:36 +0000 |
commit | 3b45789d0f173f652807d44f0bc8d57c825c9d8c (patch) | |
tree | f4ba1631a8039a2f818dec51ad4585935a6bb2d1 | |
parent | e04256c72ce7bcd77198112994a2ea0f33e35464 (diff) | |
download | ATCD-3b45789d0f173f652807d44f0bc8d57c825c9d8c.tar.gz |
ChangeLogTag:Tue Apr 11 20:06:12 2006 Douglas C. Schmidt <schmidt@cse.wustl.edu>
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ace/OS_NS_stdio.inl | 5 |
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index a9ce8fcda41..247cb5f0811 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Tue Apr 11 20:06:12 2006 Douglas C. Schmidt <schmidt@cse.wustl.edu> + + * ace/OS_NS_stdio.inl (rewind): Replaced SetFilePointer() with + fseek() on WinCE since it works better. Thanks to Andrey + Nechypurenko for reporting this. + Wed Apr 12 08:14:00 2006 Johnny Willemsen <jwillemsen@remedy.nl> * bin/MakeProjectCreator/config/ciao_events_dnc.mpb: diff --git a/ace/OS_NS_stdio.inl b/ace/OS_NS_stdio.inl index 952d9ce5560..d3f2c08c99e 100644 --- a/ace/OS_NS_stdio.inl +++ b/ace/OS_NS_stdio.inl @@ -972,8 +972,9 @@ ACE_OS::rewind (FILE *fp) ACE_OS_TRACE ("ACE_OS::rewind"); ::rewind (fp); #else - // In WinCE, "FILE *" is actually a HANDLE. - ::SetFilePointer (fp, 0L, 0L, FILE_BEGIN); + // This isn't perfect since it doesn't reset EOF, but it's probably + // the closest we can get on WINCE. + (void) fseek (fp, 0L, SEEK_SET); #endif /* ACE_HAS_WINCE */ } |