Closed
Bug 5518
Opened 26 years ago
Closed 25 years ago
Win32: PRSeekWhence values are passed to SetFilePointer.
Categories
(NSPR :: NSPR, defect, P3)
Tracking
(Not tracked)
RESOLVED
FIXED
4.1
People
(Reporter: wtc, Assigned: wtc)
Details
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•26 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•26 years ago
|
||
Fixed for Win95.
/cvsroot/mozilla/nsprpub/pr/src/md/windows/w95io.c, revision 3.8.
Comment 2•26 years ago
|
||
NSPR now has its own Bugzilla product. Moving this bug to the NSPR product.
Comment 3•26 years ago
|
||
phillip gone, removing him from qa contact, sorry for spam
Assignee | ||
Updated•25 years ago
|
Target Milestone: --- → 4.1
Assignee | ||
Comment 4•25 years ago
|
||
Checked in the fix for NT.
/cvsroot/mozilla/nsprpub/pr/src/md/windows/ntio.c, revision 3.26
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•