Skip to content

Commit

Permalink
Update MainForm.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
jthuraisamy authored Sep 14, 2020
1 parent 915495b commit 3ea0334
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ioctlpus/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ private void btnSend_Click(object sender, EventArgs e)
uint ioctl = Convert.ToUInt32(tbIOCTL.Text, 16);
DeviceIoControl(sfh, ioctl, inputBuffer, inputSize, outputBuffer, outputSize, ref returnedBytes, IntPtr.Zero);
int errorCode = Marshal.GetLastWin32Error();
CloseHandle(sfh);

DynamicByteProvider requestData = new DynamicByteProvider(inputBuffer);
hbInput.ByteProvider = requestData;
Expand Down

0 comments on commit 3ea0334

Please sign in to comment.