Author: cgutman
Date: Sun Jan 8 06:23:53 2012
New Revision: 54876
URL:
http://svn.reactos.org/svn/reactos?rev=54876&view=rev
Log:
[NDISUIO]
- Fix incorrect device name offset
Modified:
branches/wlan-bringup/drivers/network/ndisuio/ioctl.c
Modified: branches/wlan-bringup/drivers/network/ndisuio/ioctl.c
URL:
http://svn.reactos.org/svn/reactos/branches/wlan-bringup/drivers/network/nd…
==============================================================================
--- branches/wlan-bringup/drivers/network/ndisuio/ioctl.c [iso-8859-1] (original)
+++ branches/wlan-bringup/drivers/network/ndisuio/ioctl.c [iso-8859-1] Sun Jan 8 06:23:53
2012
@@ -62,13 +62,12 @@
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;