Correct the comment for 'WSManReceiveDataResult.Unmarshal'. (#7364)

This commit is contained in:
Dan Travison 2018-07-25 16:37:10 -07:00 committed by Dongbo Wang
parent 1244278e7e
commit 1583318d72

View file

@ -1911,8 +1911,8 @@ namespace System.Management.Automation.Remoting.Client
/// <summary> /// <summary>
/// Constructs a WSManReceiveDataResult from the unmanaged pointer. /// Constructs a WSManReceiveDataResult from the unmanaged pointer.
/// This involves copying data from unmanaged memory to managed heap. /// This involves copying data from unmanaged memory to managed heap.
/// Currently PowerShell supports only text data on the wire, so this /// Currently PowerShell supports only binary data on the wire, so this
/// method asserts if the data is not text. /// method asserts if the data is not binary.
/// </summary> /// </summary>
/// <param name="unmanagedData"> /// <param name="unmanagedData">
/// Pointer to unmanaged data. /// Pointer to unmanaged data.
@ -1935,7 +1935,7 @@ namespace System.Management.Automation.Remoting.Client
result1.data.binaryData.bufferLength); result1.data.binaryData.bufferLength);
} }
Dbg.Assert(result1.data.type == (uint)WSManDataType.WSMAN_DATA_TYPE_BINARY, 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(); WSManReceiveDataResult result = new WSManReceiveDataResult();
result.data = dataRecvd; result.data = dataRecvd;