Skip to content
This repository was archived by the owner on Feb 3, 2023. It is now read-only.

Commit 2ff2e86

Browse files
committed
🎨
1 parent fc88aa9 commit 2ff2e86

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

LibGit2Sharp/Filter.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,11 +252,14 @@ int StreamCreateCallback(out IntPtr git_writestream_out, GitFilter self, IntPtr
252252
state.thisStream.close = StreamCloseCallback;
253253
state.thisStream.write = StreamWriteCallback;
254254
state.thisStream.free = StreamFreeCallback;
255+
255256
state.thisPtr = Marshal.AllocHGlobal(Marshal.SizeOf(state.thisStream));
256257
Marshal.StructureToPtr(state.thisStream, state.thisPtr, false);
258+
257259
state.nextPtr = git_writestream_next;
258260
state.nextStream = new GitWriteStream();
259261
Marshal.PtrToStructure(state.nextPtr, state.nextStream);
262+
260263
state.filterSource = FilterSource.FromNativePtr(filterSourcePtr);
261264
state.output = new WriteStream(state.nextStream, state.nextPtr);
262265

0 commit comments

Comments
 (0)