summaryrefslogtreecommitdiff
path: root/ext/zip/lib/zip_source_win32handle.c
diff options
context:
space:
mode:
authorRemi Collet <remi@php.net>2016-02-22 18:18:30 +0100
committerRemi Collet <remi@php.net>2016-02-22 18:18:30 +0100
commit0d57c06b2c02678eeb724ea512b8ce4c85a339b2 (patch)
tree970c32773346253e255c92830b43ae49944ff868 /ext/zip/lib/zip_source_win32handle.c
parent78b29310bc594502b117ccd96a5ffcc03e0b7b89 (diff)
downloadphp-git-0d57c06b2c02678eeb724ea512b8ce4c85a339b2.tar.gz
update bundled libzip to 1.1.2
Diffstat (limited to 'ext/zip/lib/zip_source_win32handle.c')
-rw-r--r--ext/zip/lib/zip_source_win32handle.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/zip/lib/zip_source_win32handle.c b/ext/zip/lib/zip_source_win32handle.c
index d195a119db..35e2e67972 100644
--- a/ext/zip/lib/zip_source_win32handle.c
+++ b/ext/zip/lib/zip_source_win32handle.c
@@ -1,6 +1,6 @@
/*
zip_source_win32file.c -- create data source from HANDLE (Win32)
-Copyright (C) 1999-2015 Dieter Baron and Thomas Klausner
+Copyright (C) 1999-2016 Dieter Baron and Thomas Klausner
This file is part of libzip, a library to manipulate ZIP archives.
The authors can be contacted at <libzip@nih.at>
@@ -33,7 +33,6 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <wchar.h>
-#include <errno.h>
#include <stdlib.h>
#include <string.h>
@@ -409,6 +408,7 @@ _win32_read_file(void *state, void *data, zip_uint64_t len, zip_source_cmd_t cmd
static int
_win32_create_temp_file(_zip_source_win32_read_file_t *ctx)
{
+ zip_uint32_t value;
/*
Windows has GetTempFileName(), but it closes the file after
creation, leaving it open to a horrible race condition. So
@@ -423,7 +423,6 @@ _win32_create_temp_file(_zip_source_win32_read_file_t *ctx)
PSECURITY_ATTRIBUTES psa = NULL;
DWORD len;
BOOL success;
- zip_uint32_t value;
/*
Read the DACL from the original file, so we can copy it to the temp file.