advpack: Simplify the check for an empty string (PVS-Studio).
This commit is contained in:
parent
de092c6bd3
commit
88725cb279
|
@ -567,7 +567,7 @@ static LPSTR convert_file_list(LPCSTR FileList, DWORD *dwNumFiles)
|
|||
szConvertedList[dwLen - 1] = '\0';
|
||||
|
||||
/* empty list */
|
||||
if (!lstrlenA(szConvertedList))
|
||||
if (!szConvertedList[0])
|
||||
{
|
||||
HeapFree(GetProcessHeap(), 0, szConvertedList);
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in New Issue