Skip to content

Commit ccdf157

Browse files
authored
Merge pull request #9 from pleonex/feature/fix-winindicator
Fix throwing exception when win_indicator is zero
2 parents 31a85ac + fd0721c commit ccdf157

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

build.cake

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#load "nuget:?package=PleOps.Cake&version=0.6.0"
1+
#load "nuget:?package=PleOps.Cake&version=0.6.1"
22

33
Task("Define-Project")
44
.Description("Fill specific project information")

src/Pleosoft.XdeltaSharp/Vcdiff/Instructions/Copy.cs

-3
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ public override void DecodeInstruction(Window window, Stream input, Stream outpu
4444
uint hereAddress = window.SourceSegmentLength + ((uint)output.Position - window.TargetWindowOffset);
4545
Address = cache.GetAddress(hereAddress, binaryMode, window.Addresses);
4646

47-
if (!window.Source.HasFlag(WindowFields.Source) && !window.Source.HasFlag(WindowFields.Target))
48-
throw new InvalidOperationException("Trying to copy from unknown source");
49-
5047
CopyFromSourceWindow(window, input, output);
5148
CopyFromTargetWindow(window, output); // Not always
5249
}

0 commit comments

Comments
 (0)