remove useless if cases

svn path=/trunk/; revision=8947
This commit is contained in:
Martin Fuchs 2004-04-01 20:10:07 +00:00
parent fc8f381519
commit f2bb2f6dcb

View file

@ -1600,16 +1600,8 @@ LPITEMIDLIST _ILCreateFolder( WIN32_FIND_DATAA * stffile )
memcpy (pbuff, stffile->cFileName, len);
pbuff += len;
if (stffile->cAlternateFileName)
{
len1 = strlen (stffile->cAlternateFileName)+1;
memcpy (pbuff, stffile->cAlternateFileName, len1);
}
else
{
len1 = 1;
*pbuff = 0x00;
}
len1 = strlen (stffile->cAlternateFileName)+1;
memcpy (pbuff, stffile->cAlternateFileName, len1);
pidl = _ILCreate(PT_FOLDER, (LPVOID)buff, len + len1);
@ -1640,16 +1632,8 @@ LPITEMIDLIST _ILCreateValue(WIN32_FIND_DATAA * stffile)
memcpy (pbuff, stffile->cFileName, len);
pbuff += len;
if (stffile->cAlternateFileName)
{
len1 = strlen (stffile->cAlternateFileName)+1;
memcpy (pbuff, stffile->cAlternateFileName, len1);
}
else
{
len1 = 1;
*pbuff = 0x00;
}
len1 = strlen (stffile->cAlternateFileName)+1;
memcpy (pbuff, stffile->cAlternateFileName, len1);
pidl = _ILCreate(PT_VALUE, (LPVOID)buff, len + len1);