]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Windows: fix parameters and return value from nt_seek
authorRod Widdowson <rdw@steadingsoftware.com>
Sun, 23 Jan 2011 14:29:51 +0000 (14:29 +0000)
committerJeffrey Altman <jaltman@openafs.org>
Tue, 25 Jan 2011 09:56:10 +0000 (01:56 -0800)
commit4f838b03bbf9ea0e1ede8a188ea6dde3efb4e231
tree9b9b7765417cba5c5f32a3a932dcf81eec58e53b
parent6d2636b886789f2ddc6374c6b7e58ccd28d518aa
Windows: fix parameters and return value from nt_seek

SetFilePointerEx takes specific values
(FILE_BEGIN/FILE_CURRENT/FILE_END) whilse fseek requires SEEK_SET,
SEK_END, SEEK_CUR.  It turns out that these overlap, but we should
not let that pass unchallenged.

SetFilePointerEx returns nonzero for success zero for failure. fseek
returns the other way around.

Neither of these changes currently matter, but we should fix them.

Change-Id: Ib31cf6265fa1e714232ff0d2e099c657e41f17e9
Reviewed-on: http://gerrit.openafs.org/3746
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
src/vol/ntops.c
src/vol/ntops.h