Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion OutlookFileDrag/DataObjectHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ private static void ReadHGlobalIntoStream(IntPtr handle, Stream stream)
{
//Copy buffer length or remaining length, whichever is smaller
bytesToCopy = Math.Min(buffer.Length, length - offset);
Marshal.Copy(source, buffer, 0, bytesToCopy);
Marshal.Copy(source + offset, buffer, 0, bytesToCopy);
stream.Write(buffer, 0, bytesToCopy);
}
}
Expand Down