quartz: Use the more common ARRAY_SIZE spelling.

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2018-07-05 00:21:22 +02:00 committed by Alexandre Julliard
parent 1105d0bafb
commit e7bcc1193a
1 changed files with 5 additions and 7 deletions

View File

@ -43,8 +43,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(quartz); WINE_DEFAULT_DEBUG_CHANNEL(quartz);
#define ARRAYSIZE(array) (sizeof(array)/sizeof((array)[0]))
typedef struct FilterMapper3Impl typedef struct FilterMapper3Impl
{ {
IUnknown IUnknown_inner; IUnknown IUnknown_inner;
@ -264,7 +262,7 @@ static HRESULT WINAPI FilterMapper3_CreateCategory(
{ {
LPWSTR wClsidAMCat = NULL; LPWSTR wClsidAMCat = NULL;
LPWSTR wClsidCategory = NULL; LPWSTR wClsidCategory = NULL;
WCHAR wszKeyName[ARRAYSIZE(wszClsidSlash)-1 + ARRAYSIZE(wszSlashInstance)-1 + (CHARS_IN_GUID-1) * 2 + 1]; WCHAR wszKeyName[ARRAY_SIZE(wszClsidSlash)-1 + ARRAY_SIZE(wszSlashInstance)-1 + (CHARS_IN_GUID-1) * 2 + 1];
HKEY hKey = NULL; HKEY hKey = NULL;
LONG lRet; LONG lRet;
HRESULT hr; HRESULT hr;
@ -1268,7 +1266,7 @@ static HRESULT WINAPI FilterMapper_RegisterFilter(IFilterMapper * iface, CLSID c
LPWSTR wszClsid = NULL; LPWSTR wszClsid = NULL;
HKEY hKey; HKEY hKey;
LONG lRet; LONG lRet;
WCHAR wszKeyName[ARRAYSIZE(wszFilterSlash)-1 + (CHARS_IN_GUID-1) + 1]; WCHAR wszKeyName[ARRAY_SIZE(wszFilterSlash)-1 + (CHARS_IN_GUID-1) + 1];
TRACE("(%p)->(%s, %s, %x)\n", iface, debugstr_guid(&clsid), debugstr_w(szName), dwMerit); TRACE("(%p)->(%s, %s, %x)\n", iface, debugstr_guid(&clsid), debugstr_w(szName), dwMerit);
@ -1337,7 +1335,7 @@ static HRESULT WINAPI FilterMapper_RegisterPin(
HKEY hKey = NULL; HKEY hKey = NULL;
HKEY hPinsKey = NULL; HKEY hPinsKey = NULL;
WCHAR * wszPinsKeyName; WCHAR * wszPinsKeyName;
WCHAR wszKeyName[ARRAYSIZE(wszClsidSlash)-1 + (CHARS_IN_GUID-1) + 1]; WCHAR wszKeyName[ARRAY_SIZE(wszClsidSlash)-1 + (CHARS_IN_GUID-1) + 1];
TRACE("(%p)->(%s, %s, %d, %d, %d, %d, %s, %s)\n", iface, debugstr_guid(&Filter), debugstr_w(szName), bRendered, TRACE("(%p)->(%s, %s, %d, %d, %d, %d, %s, %s)\n", iface, debugstr_guid(&Filter), debugstr_w(szName), bRendered,
bOutput, bZero, bMany, debugstr_guid(&ConnectsToFilter), debugstr_w(ConnectsToPin)); bOutput, bZero, bMany, debugstr_guid(&ConnectsToFilter), debugstr_w(ConnectsToPin));
@ -1498,7 +1496,7 @@ static HRESULT WINAPI FilterMapper_UnregisterFilter(IFilterMapper * iface, CLSID
LONG lRet; LONG lRet;
LPWSTR wszClsid = NULL; LPWSTR wszClsid = NULL;
HKEY hKey; HKEY hKey;
WCHAR wszKeyName[ARRAYSIZE(wszClsidSlash)-1 + (CHARS_IN_GUID-1) + 1]; WCHAR wszKeyName[ARRAY_SIZE(wszClsidSlash)-1 + (CHARS_IN_GUID-1) + 1];
TRACE("(%p)->(%s)\n", iface, debugstr_guid(&Filter)); TRACE("(%p)->(%s)\n", iface, debugstr_guid(&Filter));
@ -1563,7 +1561,7 @@ static HRESULT WINAPI FilterMapper_UnregisterPin(IFilterMapper * iface, CLSID Fi
LPWSTR wszClsid = NULL; LPWSTR wszClsid = NULL;
HKEY hKey = NULL; HKEY hKey = NULL;
WCHAR * wszPinNameKey; WCHAR * wszPinNameKey;
WCHAR wszKeyName[ARRAYSIZE(wszClsidSlash)-1 + (CHARS_IN_GUID-1) + 1]; WCHAR wszKeyName[ARRAY_SIZE(wszClsidSlash)-1 + (CHARS_IN_GUID-1) + 1];
TRACE("(%p)->(%s, %s)\n", iface, debugstr_guid(&Filter), debugstr_w(Name)); TRACE("(%p)->(%s, %s)\n", iface, debugstr_guid(&Filter), debugstr_w(Name));