X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fwin32.c;h=1b2aeffe597189f77396dd2a864a5ec54262c943;hp=10f28b3d91280106d4955526f30bc8b10ddf0203;hb=16aab5992bfe8c33e2815b4ce5c9ebd7ec130c21;hpb=cbeb81145e2532bfcf3f5e58c6be000615f54953 diff --git a/src/win32.c b/src/win32.c index 10f28b3d..1b2aeffe 100644 --- a/src/win32.c +++ b/src/win32.c @@ -876,6 +876,12 @@ win32_capture_stream(const wchar_t *path, } } + /* If zero length stream, no lookup table entry needed. */ + if ((u64)dat->StreamSize.QuadPart == 0) { + ret = 0; + goto out; + } + /* Create a UTF-16LE string @spath that gives the filename, then a * colon, then the stream name. Or, if it's an unnamed stream, just the * filename. It is MALLOC()'ed so that it can be saved in the