icinfo: 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
d3188ce1f9
commit
7487e5f4e8
@ -33,7 +33,7 @@ static int mywprintf(const WCHAR *format, ...)
|
|||||||
HANDLE hout = GetStdHandle(STD_OUTPUT_HANDLE);
|
HANDLE hout = GetStdHandle(STD_OUTPUT_HANDLE);
|
||||||
|
|
||||||
va_start(parms, format);
|
va_start(parms, format);
|
||||||
vsnprintfW(output_bufW, sizeof(output_bufW)/sizeof(output_bufW[0]), format, parms);
|
vsnprintfW(output_bufW, ARRAY_SIZE(output_bufW), format, parms);
|
||||||
va_end(parms);
|
va_end(parms);
|
||||||
|
|
||||||
/* Try to write as unicode whenever we think it's a console */
|
/* Try to write as unicode whenever we think it's a console */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user