Mercurial > embed
comparison libzip/lib/zip_source_win32w.c @ 56:056ee6b5913e
libzip: update to 1.3.0, closes #654
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 10 Oct 2017 20:43:12 +0200 |
parents | 2306f4b04790 |
children |
comparison
equal
deleted
inserted
replaced
55:a7a33cbf3e52 | 56:056ee6b5913e |
---|---|
88 | 88 |
89 | 89 |
90 static HANDLE | 90 static HANDLE |
91 _win32_create_temp_w(_zip_source_win32_read_file_t *ctx, void **temp, zip_uint32_t value, PSECURITY_ATTRIBUTES sa) | 91 _win32_create_temp_w(_zip_source_win32_read_file_t *ctx, void **temp, zip_uint32_t value, PSECURITY_ATTRIBUTES sa) |
92 { | 92 { |
93 int len; | 93 size_t len; |
94 | 94 |
95 len = wcslen((const wchar_t *)ctx->fname) + 10; | 95 len = wcslen((const wchar_t *)ctx->fname) + 10; |
96 if (*temp == NULL) { | 96 if (*temp == NULL) { |
97 if ((*temp = malloc(sizeof(wchar_t) * len)) == NULL) { | 97 if ((*temp = malloc(sizeof(wchar_t) * len)) == NULL) { |
98 zip_error_set(&ctx->error, ZIP_ER_MEMORY, 0); | 98 zip_error_set(&ctx->error, ZIP_ER_MEMORY, 0); |