[WINESYNC] setupapi: Use the ARRAY_SIZE() macro.

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>

wine commit id d33f06746050984c622366ffbc19219ec1f5aa7d by Michael Stefaniuc <mstefani@winehq.org>
This commit is contained in:
winesync 2024-10-07 12:44:55 +02:00 committed by Hermès Bélusca-Maïto
parent be832c6f79
commit d3d00be596
No known key found for this signature in database
GPG Key ID: 3B2539C65E7B93D0
2 changed files with 2 additions and 2 deletions

View File

@ -1230,7 +1230,7 @@ BOOL WINAPI SetupUninstallOEMInfW( PCWSTR inf_file, DWORD flags, PVOID reserved
return FALSE;
}
if (!GetWindowsDirectoryW( target, sizeof(target)/sizeof(WCHAR) )) return FALSE;
if (!GetWindowsDirectoryW( target, ARRAY_SIZE( target ))) return FALSE;
strcatW( target, infW );
strcatW( target, inf_file );

View File

@ -3,4 +3,4 @@ files:
dlls/setupapi/misc.c: dll/win32/setupapi/misc.c
dlls/setupapi/stubs.c: dll/win32/setupapi/stubs.c
tags:
wine: 86d26dded5560d6d8adb195372f0676d1f7229b0
wine: d33f06746050984c622366ffbc19219ec1f5aa7d