Commit fce1ebbc authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

taskschd: Use the ARRAY_SIZE() macro.

parent 9003510b
...@@ -3852,7 +3852,7 @@ static HRESULT WINAPI TaskService_Connect(ITaskService *iface, VARIANT server, V ...@@ -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)) if (!is_variant_null(&user) || !is_variant_null(&domain) || !is_variant_null(&password))
FIXME("user/domain/password are ignored\n"); 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)) if (!GetComputerNameW(comp_name, &len))
return HRESULT_FROM_WIN32(GetLastError()); return HRESULT_FROM_WIN32(GetLastError());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment