winhlp32: Avoid an ARRAY_SIZE-like 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-10 12:27:56 +02:00 committed by Alexandre Julliard
parent 038d9e8ab9
commit 84f2249284
1 changed files with 3 additions and 4 deletions

View File

@ -66,19 +66,18 @@ static void WINHELP_InitFonts(HWND hWnd)
{-12, 0, 0, 0, 700, 0, 0, 0, DEFAULT_CHARSET, 0, 0, 0, 32, {'H','e','l','v',0}},
{-10, 0, 0, 0, 700, 0, 0, 0, DEFAULT_CHARSET, 0, 0, 0, 32, {'H','e','l','v',0}},
{ -8, 0, 0, 0, 400, 0, 0, 0, DEFAULT_CHARSET, 0, 0, 0, 32, {'H','e','l','v',0}}};
#define FONTS_LEN (sizeof(logfontlist)/sizeof(*logfontlist))
static HFONT fonts[FONTS_LEN];
static HFONT fonts[ARRAY_SIZE(logfontlist)];
static BOOL init = FALSE;
win->fonts_len = FONTS_LEN;
win->fonts_len = ARRAY_SIZE(logfontlist);
win->fonts = fonts;
if (!init)
{
UINT i;
for (i = 0; i < FONTS_LEN; i++)
for (i = 0; i < ARRAY_SIZE(logfontlist); i++)
{
fonts[i] = CreateFontIndirectW(&logfontlist[i]);
}