dispose of dynamic resolution of GetLongPathNameW and GetShortPathNameW

everything links to kernel32 anyway
This commit is contained in:
Oswald Buddenhagen
2011-03-21 20:34:39 +01:00
parent 428520d8eb
commit feff022186
4 changed files with 12 additions and 49 deletions

View File

@@ -188,12 +188,11 @@ QString QmlProjectRunConfiguration::canonicalCapsPath(const QString &fileName)
QString canonicalPath = QFileInfo(fileName).canonicalFilePath();
#if defined(Q_OS_WIN32)
QString error;
// don't know whether the shortpath step is really needed,
// but we do this in QtDeclarative too.
QString path = Utils::getShortPathName(canonicalPath, &error);
QString path = Utils::getShortPathName(canonicalPath);
if (!path.isEmpty())
path = Utils::getLongPathName(canonicalPath, &error);
path = Utils::getLongPathName(canonicalPath);
if (!path.isEmpty())
canonicalPath = path;
#endif