[PATCH] regsvr32: Use the ARRAY_SIZE() macro
10 Aug
2018
10 Aug
'18
10:27 a.m.
Signed-off-by: Michael Stefaniuc <mstefani(a)winehq.org> --- programs/regsvr32/regsvr32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/regsvr32/regsvr32.c b/programs/regsvr32/regsvr32.c index 988aaa3a20..cfbb80d465 100644 --- a/programs/regsvr32/regsvr32.c +++ b/programs/regsvr32/regsvr32.c @@ -49,7 +49,7 @@ static void WINAPIV output_write(UINT id, ...) if (Silent) return; - if (!LoadStringW(GetModuleHandleW(NULL), id, fmt, sizeof(fmt)/sizeof(fmt[0]))) + if (!LoadStringW(GetModuleHandleW(NULL), id, fmt, ARRAY_SIZE(fmt))) { WINE_FIXME("LoadString failed with %d\n", GetLastError()); return; -- 2.14.4
2687
Age (days ago)
2687
Last active (days ago)
0 comments
1 participants
participants (1)
-
Michael Stefaniuc