mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
remove useless if cases
svn path=/trunk/; revision=8947
This commit is contained in:
parent
fc8f381519
commit
f2bb2f6dcb
1 changed files with 4 additions and 20 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue