|
2001-04-13
| ||
| 23:13 | • Ticket [217823ffff] FileSeekProc fails to return error code status still Clo... artifact: be1cb4e518 user: dgp | |
|
2000-10-26
| ||
| 07:49 | • Closed ticket [217823ffff]. artifact: ec870e111c user: welch | |
| 00:44 | • New ticket [217823ffff]. artifact: 393ce3ef7d user: nobody | |
FileSeekProc fails to return error code
Closed / Duplicate217823ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:44:22
OriginalBugID: 1491 Bug
Version: 8.1b1
SubmitDate: '1999-03-11'
LastModified: '1999-04-05'
Severity: MED
Status: Closed
Submitter: pat
ChangedBy: stanton
RelatedBugIDs: 1477
OS: Other
Machine: NA
FixedDate: '2000-10-25'
ClosedDate: '1999-04-05'
Name:
Don Porter
CVS:
tclWinChan.c,v 1.1.2.4 1999/02/26
Patch:
Index: tclWinChan.c
===================================================================
RCS file: /cvsroot/tcl/win/tclWinChan.c,v
retrieving revision 1.1.2.4
diff -c -r1.1.2.4 tclWinChan.c
*** tclWinChan.c1999/02/26 02:19:231.1.2.4
--- tclWinChan.c1999/03/09 20:11:26
***************
*** 443,448 ****
--- 443,449 ----
newPos = SetFilePointer(infoPtr->handle, offset, NULL, moveMethod);
if (newPos == 0xFFFFFFFF) {
TclWinConvertError(GetLastError());
+ *errorCodePtr = errno;
return -1;
}
return newPos;
PatchFiles:
tclWinChan.c
FileSeekProc doesn't set *errorCodePtr to a Posix error code
as the documentation in Tcl_CreateChannel(3) specifies. This
patch corrects the error.
NB 1: This patch assumes that when SetFilePointer() is called
on a handle to a nonseeking device, it will fail and the next
call to GetLastError() will return an error which gets converted
to EINVAL. If that is not true, further patching is needed.
NB 2: The same bug is present in Tcl 8.0.x . I'm submitting only
one patch.
03/11/1999 13:26 - pat -duplicate of bug 1477
welch Closed ticket [217823ffff].
[History diff]2000-10-26 07:49:20
dgp Ticket [217823ffff]: 3 changes
[History diff]2001-04-13 23:13:20
Log in (anonymous is fine) to add a comment.