diff --git a/src/windeployqt/main.cpp b/src/windeployqt/main.cpp index 7047395c46483a0d9f17825fe936dd402924f1a9..090277ab42da75dfd5a6133aa965b2512da00ce6 100644 --- a/src/windeployqt/main.cpp +++ b/src/windeployqt/main.cpp @@ -1048,7 +1048,10 @@ static QString vcRedistDir() const QFileInfoList subDirs = QDir(vc2017RedistDirName).entryInfoList(QDir::Dirs | QDir::NoDotAndDotDot, QDir::Name | QDir::Reversed); for (const QFileInfo &f : subDirs) { - const QString path = f.absoluteFilePath(); + QString path = f.absoluteFilePath(); + if (QFileInfo(path + slash + vcDebugRedistDir()).isDir()) + return path; + path += QStringLiteral("/onecore"); if (QFileInfo(path + slash + vcDebugRedistDir()).isDir()) return path; }