diff options
Diffstat (limited to 'ace/OS_NS_stdio.inl')
-rw-r--r-- | ace/OS_NS_stdio.inl | 5 |
1 files changed, 3 insertions, 2 deletions
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 */ } |