]> wimlib.net Git - wimlib/blobdiff - src/lookup_table.h
Win32: Add untested support for encryted capture
[wimlib] / src / lookup_table.h
index e5241f8068498ce0504145589551c8cffd8b57b8..2a6bf89b35eec48a33093246c5e62b230661cabc 100644 (file)
@@ -67,7 +67,9 @@ enum resource_location {
         * file will be provided by @file_on_disk member.  In addition, if
         * @file_on_disk_fp is not NULL, it will be an open FILE * to the file.
         * */
+#ifndef __WIN32__
        RESOURCE_IN_FILE_ON_DISK,
+#endif
 
        /* The stream resource is directly attached in an in-memory buffer
         * pointed to by @attached_buffer. */
@@ -283,10 +285,12 @@ wim_resource_compression_type(const struct wim_lookup_table_entry *lte)
 static inline bool
 lte_filename_valid(const struct wim_lookup_table_entry *lte)
 {
-       return lte->resource_location == RESOURCE_IN_FILE_ON_DISK
+       return 0
        #ifdef __WIN32__
                || lte->resource_location == RESOURCE_WIN32
                || lte->resource_location == RESOURCE_WIN32_ENCRYPTED
+       #else
+               || lte->resource_location == RESOURCE_IN_FILE_ON_DISK
        #endif
        #ifdef WITH_FUSE
                || lte->resource_location == RESOURCE_IN_STAGING_FILE