mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 02:37:06 +00:00
remove useless if cases
svn path=/trunk/; revision=8947
This commit is contained in:
parent
fc8f381519
commit
f2bb2f6dcb
|
@ -1600,16 +1600,8 @@ LPITEMIDLIST _ILCreateFolder( WIN32_FIND_DATAA * stffile )
|
||||||
memcpy (pbuff, stffile->cFileName, len);
|
memcpy (pbuff, stffile->cFileName, len);
|
||||||
pbuff += len;
|
pbuff += len;
|
||||||
|
|
||||||
if (stffile->cAlternateFileName)
|
len1 = strlen (stffile->cAlternateFileName)+1;
|
||||||
{
|
memcpy (pbuff, stffile->cAlternateFileName, len1);
|
||||||
len1 = strlen (stffile->cAlternateFileName)+1;
|
|
||||||
memcpy (pbuff, stffile->cAlternateFileName, len1);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
len1 = 1;
|
|
||||||
*pbuff = 0x00;
|
|
||||||
}
|
|
||||||
|
|
||||||
pidl = _ILCreate(PT_FOLDER, (LPVOID)buff, len + len1);
|
pidl = _ILCreate(PT_FOLDER, (LPVOID)buff, len + len1);
|
||||||
|
|
||||||
|
@ -1640,16 +1632,8 @@ LPITEMIDLIST _ILCreateValue(WIN32_FIND_DATAA * stffile)
|
||||||
memcpy (pbuff, stffile->cFileName, len);
|
memcpy (pbuff, stffile->cFileName, len);
|
||||||
pbuff += len;
|
pbuff += len;
|
||||||
|
|
||||||
if (stffile->cAlternateFileName)
|
len1 = strlen (stffile->cAlternateFileName)+1;
|
||||||
{
|
memcpy (pbuff, stffile->cAlternateFileName, len1);
|
||||||
len1 = strlen (stffile->cAlternateFileName)+1;
|
|
||||||
memcpy (pbuff, stffile->cAlternateFileName, len1);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
len1 = 1;
|
|
||||||
*pbuff = 0x00;
|
|
||||||
}
|
|
||||||
|
|
||||||
pidl = _ILCreate(PT_VALUE, (LPVOID)buff, len + len1);
|
pidl = _ILCreate(PT_VALUE, (LPVOID)buff, len + len1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue