[PATCH] taskschd: Use the ARRAY_SIZE() macro
Michael Stefaniuc
mstefani at winehq.org
Wed Aug 8 15:20:01 CDT 2018
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
dlls/taskschd/task.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/taskschd/task.c b/dlls/taskschd/task.c
index 432f983c22..1306c8c8f9 100644
--- a/dlls/taskschd/task.c
+++ b/dlls/taskschd/task.c
@@ -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());
--
2.14.4
More information about the wine-devel
mailing list