summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xdelta3/releases/xdelta3-3.0.6-win32.exebin0 -> 194560 bytes
-rw-r--r--xdelta3/releases/xdelta3-3.0.6-x64.exebin0 -> 223744 bytes
-rw-r--r--xdelta3/xdelta3-main.h7
-rw-r--r--xdelta3/xdelta3.h4
4 files changed, 6 insertions, 5 deletions
diff --git a/xdelta3/releases/xdelta3-3.0.6-win32.exe b/xdelta3/releases/xdelta3-3.0.6-win32.exe
new file mode 100644
index 0000000..7d03fa2
--- /dev/null
+++ b/xdelta3/releases/xdelta3-3.0.6-win32.exe
Binary files differ
diff --git a/xdelta3/releases/xdelta3-3.0.6-x64.exe b/xdelta3/releases/xdelta3-3.0.6-x64.exe
new file mode 100644
index 0000000..2ee4c4c
--- /dev/null
+++ b/xdelta3/releases/xdelta3-3.0.6-x64.exe
Binary files differ
diff --git a/xdelta3/xdelta3-main.h b/xdelta3/xdelta3-main.h
index af2336d..fcef08d 100644
--- a/xdelta3/xdelta3-main.h
+++ b/xdelta3/xdelta3-main.h
@@ -1015,10 +1015,11 @@ xd3_win32_io (HANDLE file, uint8_t *buf, size_t size,
1015 1015
1016 while (nproc < size) 1016 while (nproc < size)
1017 { 1017 {
1018 DWORD nproc2; 1018 DWORD nproc2 = 0; /* hmm */
1019 DWORD nremain = size - nproc;
1019 if ((is_read ? 1020 if ((is_read ?
1020 ReadFile (file, buf + nproc, size - nproc, &nproc2, NULL) : 1021 ReadFile (file, buf + nproc, nremain, &nproc2, NULL) :
1021 WriteFile (file, buf + nproc, size - nproc, &nproc2, NULL)) == 0) 1022 WriteFile (file, buf + nproc, nremain, &nproc2, NULL)) == 0)
1022 { 1023 {
1023 ret = get_errno(); 1024 ret = get_errno();
1024 if (ret != ERROR_HANDLE_EOF && ret != ERROR_BROKEN_PIPE) 1025 if (ret != ERROR_HANDLE_EOF && ret != ERROR_BROKEN_PIPE)
diff --git a/xdelta3/xdelta3.h b/xdelta3/xdelta3.h
index 686e05c..9c42318 100644
--- a/xdelta3/xdelta3.h
+++ b/xdelta3/xdelta3.h
@@ -110,7 +110,6 @@
110 */ 110 */
111#ifndef _WIN32 111#ifndef _WIN32
112#include <stdint.h> 112#include <stdint.h>
113typedef uint32_t usize_t;
114#else 113#else
115#define WIN32_LEAN_AND_MEAN 114#define WIN32_LEAN_AND_MEAN
116#if XD3_USE_LARGEFILE64 115#if XD3_USE_LARGEFILE64
@@ -125,7 +124,6 @@ typedef uint32_t usize_t;
125#define _WIN32_WINNT 0x0400 124#define _WIN32_WINNT 0x0400
126#endif 125#endif
127#include <windows.h> 126#include <windows.h>
128typedef uint32_t usize_t;
129#ifdef _MSC_VER 127#ifdef _MSC_VER
130#define inline 128#define inline
131typedef signed int ssize_t; 129typedef signed int ssize_t;
@@ -144,6 +142,8 @@ typedef ULONGLONG uint64_t;
144#endif 142#endif
145#endif 143#endif
146 144
145typedef uint32_t usize_t;
146
147#if XD3_USE_LARGEFILE64 147#if XD3_USE_LARGEFILE64
148#define __USE_FILE_OFFSET64 1 /* GLIBC: for 64bit fileops, ... ? */ 148#define __USE_FILE_OFFSET64 1 /* GLIBC: for 64bit fileops, ... ? */
149#ifndef _LARGEFILE_SOURCE 149#ifndef _LARGEFILE_SOURCE