Win32: PRSeekWhence values are passed to SetFilePointer.

RESOLVED FIXED in 4.1

Status

defect
P3
normal
RESOLVED FIXED
21 years ago
19 years ago

People

(Reporter: wtc, Assigned: wtc)

Tracking

other
x86
Windows NT

Firefox Tracking Flags

(Not tracked)

Details

Assignee

Description

21 years ago
In the NT and Win95 version of _PR_MD_LSEEK and
_PR_MD_LSEEK64 (ntio.c and w95io.c), the value
of PRSeekWhence (PR_SEEK_SET, PR_SEEK_CUR, or
PR_SEEK_END) is directly passed to SetFilePointer,
which expects one of FILE_BEGIN, FILE_CURRENT,
and FILE_END.  Although the PRSeekWhence constants
have the same values as their equivalent FILE_XXX
macros, this is bad programming style.

_PR_MD_LSEEK and _PR_MD_LSEEK64 should convert the
PRSeekWhence value to the equivalent FILE_XXX macro
and pass the FILE_XXX macro to SetFilePointer.
Assignee

Updated

21 years ago
Status: NEW → ASSIGNED
Assignee

Comment 1

21 years ago
Fixed for Win95.
/cvsroot/mozilla/nsprpub/pr/src/md/windows/w95io.c, revision 3.8.

Comment 2

20 years ago
NSPR now has its own Bugzilla product.  Moving this bug to the NSPR product.

Comment 3

20 years ago
phillip gone, removing him from qa contact, sorry for spam
Assignee

Updated

19 years ago
Target Milestone: --- → 4.1
Assignee

Comment 4

19 years ago
Checked in the fix for NT.
/cvsroot/mozilla/nsprpub/pr/src/md/windows/ntio.c, revision 3.26
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.