From: Eric Biggers Date: Sat, 4 Apr 2015 04:52:08 +0000 (-0500) Subject: win32_capture.c: fix capture of unnamed stream only X-Git-Tag: v1.8.1~51 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=ecb0858f4a6d38ccdf08825a472142d8a3de9dca win32_capture.c: fix capture of unnamed stream only --- diff --git a/src/win32_capture.c b/src/win32_capture.c index c7a1d4a4..5fdc5ab9 100644 --- a/src/win32_capture.c +++ b/src/win32_capture.c @@ -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))