Commit in reactos/lib/shell32 on MAIN
pidl.c+4-201.17 -> 1.18
remove useless if cases

reactos/lib/shell32
pidl.c 1.17 -> 1.18
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);
 
CVSspam 0.2.8