summaryrefslogtreecommitdiff
path: root/ext/zip/lib/zip_source_win32handle.c
diff options
context:
space:
mode:
authorKalle Sommer Nielsen <kalle@php.net>2015-09-04 17:49:48 +0200
committerKalle Sommer Nielsen <kalle@php.net>2015-09-04 17:49:48 +0200
commit4481be5d266be78270b8ed687908adbb4ce66a5f (patch)
treec223e728cbd8ff18e613757e0f04be699541aa99 /ext/zip/lib/zip_source_win32handle.c
parent3d057850544114d5d4b993381aa79495e1b3a48e (diff)
downloadphp-git-4481be5d266be78270b8ed687908adbb4ce66a5f.tar.gz
Fix build on Windows
Diffstat (limited to 'ext/zip/lib/zip_source_win32handle.c')
-rw-r--r--ext/zip/lib/zip_source_win32handle.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/zip/lib/zip_source_win32handle.c b/ext/zip/lib/zip_source_win32handle.c
index dd17c021b3..d195a119db 100644
--- a/ext/zip/lib/zip_source_win32handle.c
+++ b/ext/zip/lib/zip_source_win32handle.c
@@ -423,6 +423,7 @@ _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.
@@ -448,7 +449,7 @@ _win32_create_temp_file(_zip_source_win32_read_file_t *ctx)
}
}
- zip_uint32_t value = GetTickCount();
+ value = GetTickCount();
for (i = 0; i < 1024 && th == INVALID_HANDLE_VALUE; i++) {
th = ctx->ops->op_create_temp(ctx, &temp, value + i, psa);
if (th == INVALID_HANDLE_VALUE && GetLastError() != ERROR_FILE_EXISTS)