summaryrefslogtreecommitdiff
path: root/Build/source/libs/zziplib/zziplib-0.13.62
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2015-03-29 11:01:09 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2015-03-29 11:01:09 +0000
commit897b76cf5ad26f8a839641b8905bed3d2d79da1c (patch)
tree3314f48f993660b2d83cd429c219de9871101293 /Build/source/libs/zziplib/zziplib-0.13.62
parentcbb84e3cc7d8a9522ef9ed74cee36a6864c3e35f (diff)
libs/zziplib: Another Windows bug fix from Akira
git-svn-id: svn://tug.org/texlive/trunk@36667 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/zziplib/zziplib-0.13.62')
-rw-r--r--Build/source/libs/zziplib/zziplib-0.13.62/zzip/__mmap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Build/source/libs/zziplib/zziplib-0.13.62/zzip/__mmap.h b/Build/source/libs/zziplib/zziplib-0.13.62/zzip/__mmap.h
index b57324c4b90..5dfc45dcda2 100644
--- a/Build/source/libs/zziplib/zziplib-0.13.62/zzip/__mmap.h
+++ b/Build/source/libs/zziplib/zziplib-0.13.62/zzip/__mmap.h
@@ -77,7 +77,7 @@ static void* win32_mmap (long* user, int fd, zzip_off_t offs, size_t len)
{
char* p = 0;
p = MapViewOfFile(*(HANDLE*)user, FILE_MAP_READ, 0, offs, len);
- if (p) return p + offs;
+ if (p) return p;
CloseHandle (*(HANDLE*)user); *user = 1;
}
return MAP_FAILED;