advpack: Simplify the check for an empty string (PVS-Studio).

This commit is contained in:
Michael Stefaniuc 2014-11-17 11:05:58 +01:00 committed by Alexandre Julliard
parent de092c6bd3
commit 88725cb279
1 changed files with 1 additions and 1 deletions

View File

@ -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;