}
}
+#ifdef __WIN32__
if (name[num_chars - 1] == cpu_to_le16(' ') ||
name[num_chars - 1] == cpu_to_le16('.'))
{
else
return false;
}
+#endif
return true;
}
#endif
size_t fixed_name_num_chars = tchar_nchars;
tchar fixed_name[tchar_nchars + 50];
- size_t extraction_name_nbytes;
tmemcpy(fixed_name, tchar_name, tchar_nchars);
fixed_name_num_chars += tsprintf(fixed_name + tchar_nchars,
T(" (invalid filename #%lu)"),
++args->invalid_sequence);
+ #ifndef __WIN32__
+ FREE(tchar_name);
+ #endif
dentry->extraction_name = memdup(fixed_name, 2 * fixed_name_num_chars + 2);
if (!dentry->extraction_name)
return WIMLIB_ERR_NOMEM;