mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
setupapi: Fix if condition in SetupEnumInfSectionsA/W.
This commit is contained in:
parent
954e55b55b
commit
619a74ec5f
1 changed files with 2 additions and 2 deletions
|
@ -1257,7 +1257,7 @@ BOOL WINAPI SetupEnumInfSectionsA( HINF hinf, UINT index, PSTR buffer, DWORD siz
|
|||
{
|
||||
DWORD len = WideCharToMultiByte( CP_ACP, 0, file->sections[index]->name, -1,
|
||||
NULL, 0, NULL, NULL );
|
||||
if (*need) *need = len;
|
||||
if (need) *need = len;
|
||||
if (!buffer)
|
||||
{
|
||||
if (!size) return TRUE;
|
||||
|
@ -1291,7 +1291,7 @@ BOOL WINAPI SetupEnumInfSectionsW( HINF hinf, UINT index, PWSTR buffer, DWORD si
|
|||
if (index < file->nb_sections)
|
||||
{
|
||||
DWORD len = strlenW( file->sections[index]->name ) + 1;
|
||||
if (*need) *need = len;
|
||||
if (need) *need = len;
|
||||
if (!buffer)
|
||||
{
|
||||
if (!size) return TRUE;
|
||||
|
|
Loading…
Reference in a new issue