[PATCH] version: Use the ARRAY_SIZE() macro
9 Aug
2018
9 Aug
'18
6:59 p.m.
Signed-off-by: Michael Stefaniuc <mstefani(a)winehq.org> --- dlls/version/version.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/version/version.c b/dlls/version/version.c index f33361bebb..5299ecd32f 100644 --- a/dlls/version/version.c +++ b/dlls/version/version.c @@ -1313,7 +1313,7 @@ DWORD WINAPI VerFindFileW( DWORD flags,LPCWSTR lpszFilename,LPCWSTR lpszWinDir, /* Figure out where the file should go; shared files default to the system directory */ - GetSystemDirectoryW(systemDir, sizeof(systemDir)/sizeof(WCHAR)); + GetSystemDirectoryW(systemDir, ARRAY_SIZE(systemDir)); curDir = &emptyW; if(flags & VFFF_ISSHAREDFILE) -- 2.14.4
2688
Age (days ago)
2688
Last active (days ago)
0 comments
1 participants
participants (1)
-
Michael Stefaniuc