87
87
WCHAR shortName[MAX_PATH + 1];
88
88
// An error should not be blocking as ERROR_INVALID_PARAMETER can simply mean
89
89
// that volume does not support 8.3 filenames, so return longPath in this case
91
91
int ret = GetShortPathNameW((LPCWSTR) nativePath.utf16(), shortName, MAX_PATH);
92
92
if (ret != ERROR_INVALID_PARAMETER && ret < MAX_PATH)
93
93
shortPath = QString::fromUtf16((const ushort*) shortName);