From: Cameron Gutman Date: Sun, 8 Jan 2012 06:23:53 +0000 (+0000) Subject: [NDISUIO] X-Git-Tag: backups/wlan-bringup@60693~32 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=1df989ccab97db9f5f60566eb11f897553019ef5 [NDISUIO] - Fix incorrect device name offset svn path=/branches/wlan-bringup/; revision=54876 --- diff --git a/drivers/network/ndisuio/ioctl.c b/drivers/network/ndisuio/ioctl.c index 0ac2674492f..c76c5e9f497 100644 --- a/drivers/network/ndisuio/ioctl.c +++ b/drivers/network/ndisuio/ioctl.c @@ -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;