taskschd: 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:
Michael Stefaniuc 2018-08-08 22:20:01 +02:00 committed by Alexandre Julliard
parent 9003510bb1
commit fce1ebbc4b

View file

@ -3852,7 +3852,7 @@ static HRESULT WINAPI TaskService_Connect(ITaskService *iface, VARIANT server, V
if (!is_variant_null(&user) || !is_variant_null(&domain) || !is_variant_null(&password))
FIXME("user/domain/password are ignored\n");
len = sizeof(comp_name)/sizeof(comp_name[0]);
len = ARRAY_SIZE(comp_name);
if (!GetComputerNameW(comp_name, &len))
return HRESULT_FROM_WIN32(GetLastError());