fix HCFILE with potfile BUG and something else related to HCFILE wrong usage

This commit is contained in:
Gabriele Gristina
2019-07-02 18:27:36 +02:00
parent ea786f715f
commit 2db6dfcd4e
6 changed files with 46 additions and 87 deletions

View File

@@ -27,8 +27,8 @@ typedef struct extra_info_combi
{
u64 pos;
HCFILE *base_fp;
HCFILE *combs_fp;
HCFILE base_fp;
HCFILE combs_fp;
u64 comb_pos_prev;
u64 comb_pos;

View File

@@ -1163,7 +1163,7 @@ typedef struct hc_device_param
char *scratch_buf;
HCFILE *combs_fp;
HCFILE combs_fp;
pw_t *combs_buf;
void *hooks_buf;
@@ -1639,7 +1639,7 @@ typedef struct potfile_ctx
{
bool enabled;
FILE *fp;
HCFILE fp;
char *filename;
u8 *out_buf; // allocates [HCBUFSIZ_LARGE];