mirror of
https://github.com/reactos/reactos.git
synced 2025-05-06 10:28:45 +00:00
[HELP]: Use ARRAYSIZE(buffer) instead of hardcoding its size.
svn path=/trunk/; revision=70899
This commit is contained in:
parent
ba411a1da0
commit
4f69fb7420
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ VOID PrintResourceString(INT resID, ...)
|
|||
va_list args;
|
||||
va_start(args, resID);
|
||||
|
||||
LoadStringW(GetModuleHandleW(NULL), resID, bufSrc, RC_STRING_MAX_SIZE);
|
||||
LoadStringW(GetModuleHandleW(NULL), resID, bufSrc, ARRAYSIZE(bufSrc));
|
||||
vswprintf(bufFormatted, bufSrc, args);
|
||||
CharToOemW(bufFormatted, bufFormattedOem);
|
||||
fputs(bufFormattedOem, stdout);
|
||||
|
|
Loading…
Reference in a new issue