Re: [PATCH v2] ntoskrnl.exe: Implement IoGetDeviceProperty for DevicePropertyPhysicalDeviceObjectName
28 Jan
2016
28 Jan
'16
1:43 p.m.
Aric Stewart <aric(a)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(a)winehq.org
3696
Age (days ago)
3696
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard