[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-devel
Subject: Re: [PATCH v2] ntoskrnl.exe: Implement IoGetDeviceProperty for DevicePropertyPhysicalDeviceObjectNam
From: Alexandre Julliard <julliard () winehq ! org>
Date: 2016-01-28 13:43:04
Message-ID: 87io2d3jmf.fsf () winehq ! org
[Download RAW message or body]
Aric Stewart <aric@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@winehq.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic