mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 04:13:35 +00:00
[NDISUIO]
- Fix incorrect device name offset svn path=/branches/wlan-bringup/; revision=54876
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user