kernel32: 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:
Michael Stefaniuc 2018-11-14 20:46:01 +01:00 committed by Alexandre Julliard
parent 9f7692e2ed
commit d9c7d4147b
1 changed files with 1 additions and 1 deletions

View File

@ -2553,7 +2553,7 @@ static BOOL create_cmd_process( LPSECURITY_ATTRIBUTES psa, LPSECURITY_ATTRIBUTES
if (!GetEnvironmentVariableW( comspecW, comspec, ARRAY_SIZE( comspec ))) if (!GetEnvironmentVariableW( comspecW, comspec, ARRAY_SIZE( comspec )))
{ {
GetSystemDirectoryW( comspec, (sizeof(comspec) - sizeof(cmdW))/sizeof(WCHAR) ); GetSystemDirectoryW( comspec, ARRAY_SIZE( comspec ) - ARRAY_SIZE( cmdW ));
strcatW( comspec, cmdW ); strcatW( comspec, cmdW );
} }
if (!(newcmdline = HeapAlloc( GetProcessHeap(), 0, if (!(newcmdline = HeapAlloc( GetProcessHeap(), 0,