]> wimlib.net Git - wimlib/blobdiff - src/win32_capture.c
win32_capture.c: fix capture of unnamed stream only
[wimlib] / src / win32_capture.c
index c7a1d4a407feeae5fa6c4921d287bc0ce46638e3..5fdc5ab9f01f7eff4d9254354053f2737d7cf4b0 100644 (file)
@@ -1087,8 +1087,11 @@ unnamed_only:
                goto out_free_buf;
        }
 
-       ret = winnt_scan_data_stream(path, path_nchars, L"::$DATA", 7,
-                                    file_size, inode, unhashed_blobs);
+       {
+               wchar_t stream_name[] = L"::$DATA";
+               ret = winnt_scan_data_stream(path, path_nchars, stream_name, 7,
+                                            file_size, inode, unhashed_blobs);
+       }
 out_free_buf:
        /* Free buffer if allocated on heap.  */
        if (unlikely(buf != _buf))