Shut up some warnings when detecting VapourSynth registry path.

This commit is contained in:
LoRd_MuldeR 2016-10-21 12:00:33 +02:00
parent 33de4dd98e
commit a102ca5c73
2 changed files with 10 additions and 7 deletions

View File

@ -238,6 +238,8 @@ void VapourSynthCheckThread::detectVapourSynthPath3(int &success, QString &path)
for (size_t j = 0; VPS_REG_NAME[j]; j++) for (size_t j = 0; VPS_REG_NAME[j]; j++)
{ {
for (size_t k = 0; k < 3; k++) for (size_t k = 0; k < 3; k++)
{
if (MUtils::Registry::reg_key_exists(MUtils::Registry::root_machine, QString::fromLatin1(VPS_REG_KEYS[i]), REG_SCOPE[k]))
{ {
QString temp; QString temp;
if (MUtils::Registry::reg_value_read(MUtils::Registry::root_machine, QString::fromLatin1(VPS_REG_KEYS[i]), QString::fromLatin1(VPS_REG_NAME[j]), temp, REG_SCOPE[k])) if (MUtils::Registry::reg_value_read(MUtils::Registry::root_machine, QString::fromLatin1(VPS_REG_KEYS[i]), QString::fromLatin1(VPS_REG_NAME[j]), temp, REG_SCOPE[k]))
@ -250,6 +252,7 @@ void VapourSynthCheckThread::detectVapourSynthPath3(int &success, QString &path)
} }
} }
} }
}
if (!vapoursynthPath.isEmpty()) if (!vapoursynthPath.isEmpty())
{ {
break; break;

View File

@ -26,7 +26,7 @@
#define VER_X264_MAJOR 2 #define VER_X264_MAJOR 2
#define VER_X264_MINOR 7 #define VER_X264_MINOR 7
#define VER_X264_PATCH 5 #define VER_X264_PATCH 5
#define VER_X264_BUILD 1056 #define VER_X264_BUILD 1058
#define VER_X264_PORTABLE_EDITION (0) #define VER_X264_PORTABLE_EDITION (0)