git://wimlib.net
/
wimlib
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa3a283
)
win32_capture.c: fix capture of unnamed stream only
author
Eric Biggers
<ebiggers3@gmail.com>
Sat, 4 Apr 2015 04:52:08 +0000
(23:52 -0500)
committer
Eric Biggers
<ebiggers3@gmail.com>
Sat, 4 Apr 2015 21:06:04 +0000
(16:06 -0500)
src/win32_capture.c
patch
|
blob
|
history
diff --git
a/src/win32_capture.c
b/src/win32_capture.c
index c7a1d4a407feeae5fa6c4921d287bc0ce46638e3..5fdc5ab9f01f7eff4d9254354053f2737d7cf4b0 100644
(file)
--- 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))