Michael Stefaniuc : kernel32: Use the ARRAY_SIZE() macro.
Alexandre Julliard
julliard at winehq.org
Wed Nov 14 16:19:00 CST 2018
Module: wine
Branch: master
Commit: d9c7d4147b569553bc97ef57c6200002fe81565e
URL: https://source.winehq.org/git/wine.git/?a=commit;h=d9c7d4147b569553bc97ef57c6200002fe81565e
Author: Michael Stefaniuc <mstefani at winehq.org>
Date: Wed Nov 14 20:46:01 2018 +0100
kernel32: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/kernel32/process.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c
index 53b1b2d..abf33df 100644
--- a/dlls/kernel32/process.c
+++ b/dlls/kernel32/process.c
@@ -2553,7 +2553,7 @@ static BOOL create_cmd_process( LPSECURITY_ATTRIBUTES psa, LPSECURITY_ATTRIBUTES
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 );
}
if (!(newcmdline = HeapAlloc( GetProcessHeap(), 0,
More information about the wine-cvs
mailing list