]> wimlib.net Git - wimlib/blobdiff - src/win32.c
Use -fno-strict-aliasing
[wimlib] / src / win32.c
index b3aec1cbfc2b97e3d06a0ae642feea851504baf3..f2e7eeb08988464c43db05f4eb3f9850a381d150 100644 (file)
@@ -585,12 +585,17 @@ win32_capture_stream(const wchar_t *path,
        spath = NULL;
        lte->resource_location = RESOURCE_WIN32;
        lte->resource_entry.original_size = (u64)dat->StreamSize.QuadPart;
-       lookup_table_insert_unhashed(lookup_table, lte);
 
-       if (is_named_stream)
+       u32 stream_id;
+       if (is_named_stream) {
+               stream_id = ads_entry->stream_id;
                ads_entry->lte = lte;
-       else
+       } else {
+               stream_id = 0;
                inode->i_lte = lte;
+       }
+
+       lookup_table_insert_unhashed(lookup_table, lte, inode, stream_id);
 out_free_spath:
        FREE(spath);
 out: