t2embed: 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:00 +02:00 committed by Alexandre Julliard
parent 554e2641cc
commit 9003510bb1
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ LONG WINAPI TTIsEmbeddingEnabledForFacename(LPCSTR facename, BOOL *enabled)
DWORD name_len, value_len, value, type; DWORD name_len, value_len, value, type;
CHAR name[LF_FACESIZE]; CHAR name[LF_FACESIZE];
name_len = sizeof(name)/sizeof(*name); name_len = ARRAY_SIZE(name);
value_len = sizeof(value); value_len = sizeof(value);
ret = RegEnumValueA(hkey, index++, name, &name_len, NULL, &type, (BYTE*)&value, &value_len); ret = RegEnumValueA(hkey, index++, name, &name_len, NULL, &type, (BYTE*)&value, &value_len);
if (ret || type != REG_DWORD) if (ret || type != REG_DWORD)