ntoskrnl.exe: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
21d0f36511
commit
b0bcfabf2d
|
@ -3767,7 +3767,7 @@ static NTSTATUS send_power_irp( DEVICE_OBJECT *device, DEVICE_POWER_STATE power
|
||||||
static void handle_bus_relations( DEVICE_OBJECT *device )
|
static void handle_bus_relations( DEVICE_OBJECT *device )
|
||||||
{
|
{
|
||||||
static const WCHAR driverW[] = {'\\','D','r','i','v','e','r','\\',0};
|
static const WCHAR driverW[] = {'\\','D','r','i','v','e','r','\\',0};
|
||||||
WCHAR buffer[MAX_SERVICE_NAME + sizeof(servicesW)/sizeof(WCHAR)];
|
WCHAR buffer[MAX_SERVICE_NAME + ARRAY_SIZE(servicesW)];
|
||||||
WCHAR driver[MAX_SERVICE_NAME] = {0};
|
WCHAR driver[MAX_SERVICE_NAME] = {0};
|
||||||
DRIVER_OBJECT *driver_obj;
|
DRIVER_OBJECT *driver_obj;
|
||||||
UNICODE_STRING string;
|
UNICODE_STRING string;
|
||||||
|
|
Loading…
Reference in New Issue