summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles.Forsyth <devnull@localhost>2007-03-12 12:06:37 +0000
committerCharles.Forsyth <devnull@localhost>2007-03-12 12:06:37 +0000
commit8675b89abf2848e59d63e796022e331287f77f85 (patch)
tree49eb493eb5ca715bd9976a99cf6f0868cbc40d8c
parent3555c65fdd2b7ff06f1847e174486888d459748c (diff)
"20070312b enable windows 64-bit seek"
-rw-r--r--CHANGES1
-rw-r--r--emu/Nt/devfs.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 193ec5b7..899f899e 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,6 @@
20070312
rename -D and -k options to plumb (old ones still accepted); add -i option to take data from standard input; update man page
+ enable 64-bit seeks in /emu/Nt/devfs.c
20070302
change /mkfile to build yacc earlier, mainly to make bootstrap of a new host easier (makemk.sh and mk install)
change /utils/mkfile not to build k[acl] and q[acl] on Plan 9, since the system ones are the same
diff --git a/emu/Nt/devfs.c b/emu/Nt/devfs.c
index c15b4549..43517829 100644
--- a/emu/Nt/devfs.c
+++ b/emu/Nt/devfs.c
@@ -729,7 +729,7 @@ fslseek(HANDLE h, vlong offset)
{
LONG hi;
- if(1 || offset <= 0x7ffffff){ /* TO DO: remove 1 || */
+ if(offset <= 0x7fffffff){
if(SetFilePointer(h, (LONG)offset, NULL, FILE_BEGIN) == INVALID_SET_FILE_POINTER)
oserror();
}else{