extract.c: trailing dot or space in filename is okay with Windows NT APIs
authorEric Biggers <ebiggers3@gmail.com>
Sun, 7 Jun 2015 13:59:43 +0000 (08:59 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Sun, 7 Jun 2015 18:28:43 +0000 (13:28 -0500)
src/extract.c

index 6b35a90..706282e 100644 (file)
@@ -675,16 +675,6 @@ file_name_valid(utf16lechar *name, size_t num_chars, bool fix)
                }
        }
 
-#ifdef __WIN32__
-       if (name[num_chars - 1] == cpu_to_le16(' ') ||
-           name[num_chars - 1] == cpu_to_le16('.'))
-       {
-               if (fix)
-                       name[num_chars - 1] = replacement_char;
-               else
-                       return false;
-       }
-#endif
        return true;
 }