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

@ -239,14 +239,17 @@ void VapourSynthCheckThread::detectVapourSynthPath3(int &success, QString &path)
{
for (size_t k = 0; k < 3; k++)
{
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_key_exists(MUtils::Registry::root_machine, QString::fromLatin1(VPS_REG_KEYS[i]), REG_SCOPE[k]))
{
temp = cleanDir(temp);
if (VALID_DIR(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]))
{
vapoursynthPath = temp;
break;
temp = cleanDir(temp);
if (VALID_DIR(temp))
{
vapoursynthPath = temp;
break;
}
}
}
}

View File

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