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:
parent
554e2641cc
commit
9003510bb1
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue