Remove dot at the end of filename without extension
authorSebastian Gasiorek <sebastian.gasiorek@reactos.org>
Sun, 11 Dec 2005 18:29:27 +0000 (18:29 +0000)
committerSebastian Gasiorek <sebastian.gasiorek@reactos.org>
Sun, 11 Dec 2005 18:29:27 +0000 (18:29 +0000)
svn path=/trunk/; revision=20071

reactos/drivers/fs/cdfs/misc.c

index 5bd6223..49f2741 100644 (file)
@@ -50,6 +50,11 @@ CdfsSwapString(PWCHAR Out,
       if (t[i+1] == 0 && t[i] == ';')
        break;
     }
+  if ((i>2)&&(t[i-2] == '.'))
+  {
+    t[i-2] = 0;
+    t[i-1] = 0;
+  }
   t[i] = 0;
   t[i+1] = 0;
 }