- ret = win32_get_short_name(h, root);
- if (ret) {
- ERROR_WITH_ERRNO("\"%ls\": Can't get short name", full_path);
+ /* Get the short (DOS) name of the file. */
+ status = winnt_get_short_name(h, root);
+
+ /* If we can't read the short filename for any reason other than
+ * out-of-memory, just ignore the error and assume the file has no short
+ * name. This shouldn't be an issue, since the short names are
+ * essentially obsolete anyway. */
+ if (unlikely(status == STATUS_NO_MEMORY)) {
+ ret = WIMLIB_ERR_NOMEM;