Signed-off-by: Michael Stefaniuc mstefani@winehq.org --- programs/services/services.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/programs/services/services.c b/programs/services/services.c index 1973d27950..3de46bd200 100644 --- a/programs/services/services.c +++ b/programs/services/services.c @@ -664,7 +664,7 @@ static LPWSTR service_get_pipe_name(void) { static const WCHAR format[] = { '\','\','.','\','p','i','p','e','\', 'n','e','t','\','N','t','C','o','n','t','r','o','l','P','i','p','e','%','u',0}; - static WCHAR name[sizeof(format)/sizeof(WCHAR) + 10]; /* strlenW("4294967295") */ + static WCHAR name[ARRAY_SIZE(format) + 10]; /* strlenW("4294967295") */ static DWORD service_current = 0; DWORD len, value = -1; LONG ret; @@ -776,7 +776,7 @@ static DWORD add_winedevice_service(const struct service_entry *service, WCHAR * struct service_entry **entry) { static const WCHAR format[] = {'W','i','n','e','d','e','v','i','c','e','%','u',0}; - static WCHAR name[sizeof(format)/sizeof(WCHAR) + 10]; /* strlenW("4294967295") */ + static WCHAR name[ARRAY_SIZE(format) + 10]; /* strlenW("4294967295") */ static DWORD current = 0; struct scmdatabase *db = service->db; DWORD err;