mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 09:57:19 +00:00
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 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};
|
||||
DRIVER_OBJECT *driver_obj;
|
||||
UNICODE_STRING string;
|
||||
|
|
Loading…
Reference in a new issue