mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 22:52:58 +00:00
[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> [WINESYNC] setupapi: For consistency use __x86_64__ instead of __x86_64. Spotted by Ken Thomases. Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org> wine commit id a6d89db61566b5dcccd66cb1cb5a51dfa0cc0f0a by Huw Davies <huw@codeweavers.com>
This commit is contained in:
parent
8ebf8ef4fa
commit
ea725d3792
5 changed files with 17 additions and 24 deletions
|
@ -842,9 +842,9 @@ BOOL WINAPI SetupQueueCopySectionW( HSPFILEQ queue, PCWSTR src_root, HINF hinf,
|
|||
if (!(params.TargetDirectory = dest_dir = get_destination_dir( hinf, section ))) goto done;
|
||||
do
|
||||
{
|
||||
if (!SetupGetStringFieldW( &context, 1, dest, sizeof(dest)/sizeof(WCHAR), NULL ))
|
||||
if (!SetupGetStringFieldW( &context, 1, dest, ARRAY_SIZE( dest ), NULL ))
|
||||
goto end;
|
||||
if (!SetupGetStringFieldW( &context, 2, src, sizeof(src)/sizeof(WCHAR), NULL )) *src = 0;
|
||||
if (!SetupGetStringFieldW( &context, 2, src, ARRAY_SIZE( src ), NULL )) *src = 0;
|
||||
if (!SetupGetIntField( &context, 4, &flags )) flags = 0; /* FIXME */
|
||||
|
||||
params.SourceFilename = *src ? src : NULL;
|
||||
|
@ -898,7 +898,7 @@ BOOL WINAPI SetupQueueDeleteSectionW( HSPFILEQ queue, HINF hinf, HINF hlist, PCW
|
|||
if (!(dest_dir = get_destination_dir( hinf, section ))) return FALSE;
|
||||
do
|
||||
{
|
||||
if (!SetupGetStringFieldW( &context, 1, buffer, sizeof(buffer)/sizeof(WCHAR), NULL ))
|
||||
if (!SetupGetStringFieldW( &context, 1, buffer, ARRAY_SIZE( buffer ), NULL ))
|
||||
goto done;
|
||||
if (!SetupGetIntField( &context, 4, &flags )) flags = 0;
|
||||
if (!SetupQueueDeleteW( queue, dest_dir, buffer )) goto done;
|
||||
|
@ -946,9 +946,9 @@ BOOL WINAPI SetupQueueRenameSectionW( HSPFILEQ queue, HINF hinf, HINF hlist, PCW
|
|||
if (!(dest_dir = get_destination_dir( hinf, section ))) return FALSE;
|
||||
do
|
||||
{
|
||||
if (!SetupGetStringFieldW( &context, 1, dst, sizeof(dst)/sizeof(WCHAR), NULL ))
|
||||
if (!SetupGetStringFieldW( &context, 1, dst, ARRAY_SIZE( dst ), NULL ))
|
||||
goto done;
|
||||
if (!SetupGetStringFieldW( &context, 2, src, sizeof(src)/sizeof(WCHAR), NULL ))
|
||||
if (!SetupGetStringFieldW( &context, 2, src, ARRAY_SIZE( src ), NULL ))
|
||||
goto done;
|
||||
if (!SetupQueueRenameW( queue, dest_dir, src, NULL, dst )) goto done;
|
||||
} while (SetupFindNextLine( &context, &context ));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue