[NDISUIO]

- Fix incorrect device name offset

svn path=/branches/wlan-bringup/; revision=54876
This commit is contained in:
Cameron Gutman
2012-01-08 06:23:53 +00:00
parent 781ac406d4
commit 1df989ccab
+1 -2
View File
@@ -62,13 +62,12 @@ QueryBinding(PIRP Irp, PIO_STACK_LOCATION IrpSp)
BytesCopied = sizeof(NDISUIO_QUERY_BINDING);
if (AdapterContext->DeviceName.Length <= BindingLength - BytesCopied)
{
BytesCopied += AdapterContext->DeviceName.Length;
QueryBinding->DeviceNameOffset = BytesCopied;
QueryBinding->DeviceNameLength = AdapterContext->DeviceName.Length;
RtlCopyMemory((PUCHAR)QueryBinding + QueryBinding->DeviceNameOffset,
AdapterContext->DeviceName.Buffer,
QueryBinding->DeviceNameLength);
BytesCopied += AdapterContext->DeviceName.Length;
/* FIXME: Copy description too */
QueryBinding->DeviceDescrOffset = BytesCopied;