[PATCH v2] ntoskrnl.exe: Implement IoGetDeviceProperty for DevicePropertyPhysicalDeviceObjectName
Alexandre Julliard
julliard at winehq.org
Thu Jan 28 07:43:04 CST 2016
Aric Stewart <aric at codeweavers.com> writes:
> + switch (device_property)
> + {
> + case DevicePropertyPhysicalDeviceObjectName:
> + {
> + OBJECT_NAME_INFORMATION *name = HeapAlloc(GetProcessHeap(), 0, buffer_length + (sizeof(OBJECT_NAME_INFORMATION)));
> +
> + status = NtQueryObject(device->Reserved, ObjectNameInformation, name, buffer_length + sizeof(OBJECT_NAME_INFORMATION), result_length);
> + if (status == STATUS_SUCCESS)
> + memcpy(property_buffer, name->Name.Buffer, name->Name.Length);
> + HeapFree(GetProcessHeap(), 0, name);
> + break;
result_length is not handled correctly.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list