Lines Matching refs:ctx
41 static HANDLE _win32_open_a(_zip_source_win32_read_file_t *ctx);
42 static HANDLE _win32_create_temp_a(_zip_source_win32_read_file_t *ctx, void **temp, zip_uint32_t va…
43 static int _win32_rename_temp_a(_zip_source_win32_read_file_t *ctx);
84 _win32_open_a(_zip_source_win32_read_file_t *ctx) in _win32_open_a() argument
86 …return CreateFileA(ctx->fname, GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTI… in _win32_open_a()
91 _win32_create_temp_a(_zip_source_win32_read_file_t *ctx, void **temp, zip_uint32_t value, PSECURITY… in _win32_create_temp_a() argument
95 len = strlen((const char *)ctx->fname) + 10; in _win32_create_temp_a()
98 zip_error_set(&ctx->error, ZIP_ER_MEMORY, 0); in _win32_create_temp_a()
102 if (sprintf((char *)*temp, "%s.%08x", (const char *)ctx->fname, value) != len - 1) { in _win32_create_temp_a()
111 _win32_rename_temp_a(_zip_source_win32_read_file_t *ctx) in _win32_rename_temp_a() argument
113 if (!MoveFileExA(ctx->tmpname, ctx->fname, MOVEFILE_REPLACE_EXISTING)) in _win32_rename_temp_a()