]> wimlib.net Git - wimlib/commitdiff
win32_capture.c: fix capture of unnamed stream only
authorEric Biggers <ebiggers3@gmail.com>
Sat, 4 Apr 2015 04:52:08 +0000 (23:52 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Sat, 4 Apr 2015 21:06:04 +0000 (16:06 -0500)
src/win32_capture.c

index c7a1d4a407feeae5fa6c4921d287bc0ce46638e3..5fdc5ab9f01f7eff4d9254354053f2737d7cf4b0 100644 (file)
@@ -1087,8 +1087,11 @@ unnamed_only:
                goto out_free_buf;
        }
 
                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))
 out_free_buf:
        /* Free buffer if allocated on heap.  */
        if (unlikely(buf != _buf))