
22 Feb
2010
22 Feb
'10
7:04 p.m.
eg wrote:
However, I am just a little worried about the statement in the docs which say "If an error has occurred, the return value of SetFilePointer is INVALID_SET_FILE_POINTER and GetLastError returns a value other than NO_ERROR."
Perhaps this is just a case of fuzzy documentation, or I am reading too much into the "...and GetLastError returns a value other than NO_ERROR".
Not sure if you're reading too much into it, but this bug is currently triggered by GetLastError() returning an error when in fact no error has occurred. The INVALID_SET_FILE_POINTER is the more conservative test, it seems to me, and if SetFilePointer returns it, there *must* have been an error, no? Erik