reactos/lib/shell32
diff -u -r1.17 -r1.18
--- pidl.c 27 Mar 2004 09:12:05 -0000 1.17
+++ pidl.c 1 Apr 2004 20:10:07 -0000 1.18
@@ -1600,16 +1600,8 @@
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 @@
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);