OSDN Git Service

Fixed a crash in QAAC detection code.
authorlordmulder <mulder2@gmx.de>
Tue, 22 Nov 2011 23:03:42 +0000 (00:03 +0100)
committerlordmulder <mulder2@gmx.de>
Tue, 22 Nov 2011 23:03:42 +0000 (00:03 +0100)
src/Thread_Initialization.cpp

index f359dd7..bb6bf14 100644 (file)
@@ -490,7 +490,7 @@ void InitializationThread::initQAac(void)
        qaacFileInfo[1] = QFileInfo(QString("%1/libsoxrate.dll").arg(appPath));
        
        bool qaacFilesFound = true;
-       for(int i = 0; i < 4; i++)      { if(!qaacFileInfo[i].exists()) qaacFilesFound = false; }
+       for(int i = 0; i < 2; i++)      { if(!qaacFileInfo[i].exists()) qaacFilesFound = false; }
 
        //Lock the QAAC binaries
        if(!qaacFilesFound)