X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Flookup_table.c;h=fee69cbb6cc26c5adcfb478e8103bdc508c9be0d;hp=2c3278a9e22c898b7b187c1095f6e08d061f3dc0;hb=ebd6c0ec0ff47ac18af4ef918fd78fb8d9f19540;hpb=c8b34bffb7884de559d6ac208e0bd982ea318a36 diff --git a/src/lookup_table.c b/src/lookup_table.c index 2c3278a9..fee69cbb 100644 --- a/src/lookup_table.c +++ b/src/lookup_table.c @@ -86,6 +86,9 @@ clone_lookup_table_entry(const struct wim_lookup_table_entry *old) switch (new->resource_location) { case RESOURCE_IN_STAGING_FILE: case RESOURCE_IN_FILE_ON_DISK: +#if defined(__CYGWIN__) || defined(__WIN32__) + case RESOURCE_WIN32: +#endif BUILD_BUG_ON((void*)&old->file_on_disk != (void*)&old->staging_file_name); new->staging_file_name = STRDUP(old->staging_file_name); @@ -138,6 +141,9 @@ void free_lookup_table_entry(struct wim_lookup_table_entry *lte) case RESOURCE_IN_STAGING_FILE: case RESOURCE_IN_ATTACHED_BUFFER: case RESOURCE_IN_FILE_ON_DISK: +#if defined(__CYGWIN__) || defined(__WIN32__) + case RESOURCE_WIN32: +#endif BUILD_BUG_ON((void*)<e->file_on_disk != (void*)<e->staging_file_name); BUILD_BUG_ON((void*)<e->file_on_disk !=