Fix compatibility to WindowsXP: The GetErrorMode() API requires Vista or newer, so don't use it!

This commit is contained in:
LoRd_MuldeR 2013-10-21 18:48:51 +02:00
parent 61409ee2e6
commit a2e02220dc
6 changed files with 8 additions and 10 deletions

View File

@ -3290,7 +3290,7 @@
<context>
<name>QApplication</name>
<message>
<location filename="../../src/Global.cpp" line="1334"/>
<location filename="../../src/Global.cpp" line="1337"/>
<source>Executable &apos;%1&apos; doesn&apos;t support Windows compatibility mode.</source>
<translation type="unfinished"></translation>
</message>

View File

@ -3327,7 +3327,7 @@
<context>
<name>QApplication</name>
<message>
<location filename="../../src/Global.cpp" line="1334"/>
<location filename="../../src/Global.cpp" line="1337"/>
<source>Executable &apos;%1&apos; doesn&apos;t support Windows compatibility mode.</source>
<translation type="unfinished">Plik wykonywalny &apos;%1&apos; nie działa w trybie kompatybilności z Windows.</translation>
</message>

View File

@ -3310,7 +3310,7 @@
<context>
<name>QApplication</name>
<message>
<location filename="../../src/Global.cpp" line="1334"/>
<location filename="../../src/Global.cpp" line="1337"/>
<source>Executable &apos;%1&apos; doesn&apos;t support Windows compatibility mode.</source>
<translation>EXE-filen &apos;%1&apos; stöder inte Windows kompatibilitetsläge.</translation>
</message>

View File

@ -34,7 +34,7 @@
#define VER_LAMEXP_MINOR_LO 9
#define VER_LAMEXP_TYPE Alpha
#define VER_LAMEXP_PATCH 3
#define VER_LAMEXP_BUILD 1414
#define VER_LAMEXP_BUILD 1415
#define VER_LAMEXP_CONFG 1348
///////////////////////////////////////////////////////////////////////////////

View File

@ -135,8 +135,7 @@ void SplashScreen::showSplash(QThread *thread)
for(int i = 1; i <= opacitySteps; i++)
{
const double opacity = (i < opacitySteps) ? (OPACITY_DELTA * static_cast<double>(i)) : 1.0;
splashScreen->setWindowOpacity(opacity);
splashScreen->update();
splashScreen->setWindowOpacity(opacity); //splashScreen->update();
ASYNC_WAIT(loop, FADE_DELAY);
SET_TASKBAR_STATE(true);
}
@ -161,8 +160,7 @@ void SplashScreen::showSplash(QThread *thread)
for(int i = opacitySteps; i >= 0; i--)
{
const double opacity = OPACITY_DELTA * static_cast<double>(i);
splashScreen->setWindowOpacity(opacity);
splashScreen->update();
splashScreen->setWindowOpacity(opacity); //splashScreen->update();
ASYNC_WAIT(loop, FADE_DELAY);
}

View File

@ -58,7 +58,7 @@ static int lamexp_main(int argc, char* argv[])
bool bAccepted = true;
//Increase "main" thread priority
SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_HIGHEST);
SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_ABOVE_NORMAL);
//Get CLI arguments
const QStringList &arguments = lamexp_arguments();
@ -271,7 +271,7 @@ int main(int argc, char* argv[])
{
__try
{
SetErrorMode(GetErrorMode() | SEM_FAILCRITICALERRORS | SEM_NOOPENFILEERRORBOX);
SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOOPENFILEERRORBOX);
SetUnhandledExceptionFilter(lamexp_exception_handler);
_set_invalid_parameter_handler(lamexp_invalid_param_handler);
return _main(argc, argv);