Skip to content

Commit

Permalink
Correct the comment for 'WSManReceiveDataResult.Unmarshal'. (PowerShe…
Browse files Browse the repository at this point in the history
  • Loading branch information
dantraMSFT authored and daxian-dbw committed Jul 25, 2018
1 parent 1244278 commit 1583318
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1911,8 +1911,8 @@ internal class WSManReceiveDataResult
/// <summary>
/// Constructs a WSManReceiveDataResult from the unmanaged pointer.
/// This involves copying data from unmanaged memory to managed heap.
/// Currently PowerShell supports only text data on the wire, so this
/// method asserts if the data is not text.
/// Currently PowerShell supports only binary data on the wire, so this
/// method asserts if the data is not binary.
/// </summary>
/// <param name="unmanagedData">
/// Pointer to unmanaged data.
Expand All @@ -1935,7 +1935,7 @@ internal static WSManReceiveDataResult UnMarshal(IntPtr unmanagedData)
result1.data.binaryData.bufferLength);
}
Dbg.Assert(result1.data.type == (uint)WSManDataType.WSMAN_DATA_TYPE_BINARY,
"ReceiveDataResult can receive only text data");
"ReceiveDataResult can receive only binary data");

WSManReceiveDataResult result = new WSManReceiveDataResult();
result.data = dataRecvd;
Expand Down

0 comments on commit 1583318

Please sign in to comment.