Fix compatibility to WindowsXP: The GetErrorMode() API requires Vista or newer, so don't use it!
This commit is contained in:
parent
61409ee2e6
commit
a2e02220dc
@ -3290,7 +3290,7 @@
|
|||||||
<context>
|
<context>
|
||||||
<name>QApplication</name>
|
<name>QApplication</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/Global.cpp" line="1334"/>
|
<location filename="../../src/Global.cpp" line="1337"/>
|
||||||
<source>Executable '%1' doesn't support Windows compatibility mode.</source>
|
<source>Executable '%1' doesn't support Windows compatibility mode.</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -3327,7 +3327,7 @@
|
|||||||
<context>
|
<context>
|
||||||
<name>QApplication</name>
|
<name>QApplication</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/Global.cpp" line="1334"/>
|
<location filename="../../src/Global.cpp" line="1337"/>
|
||||||
<source>Executable '%1' doesn't support Windows compatibility mode.</source>
|
<source>Executable '%1' doesn't support Windows compatibility mode.</source>
|
||||||
<translation type="unfinished">Plik wykonywalny '%1' nie działa w trybie kompatybilności z Windows.</translation>
|
<translation type="unfinished">Plik wykonywalny '%1' nie działa w trybie kompatybilności z Windows.</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -3310,7 +3310,7 @@
|
|||||||
<context>
|
<context>
|
||||||
<name>QApplication</name>
|
<name>QApplication</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/Global.cpp" line="1334"/>
|
<location filename="../../src/Global.cpp" line="1337"/>
|
||||||
<source>Executable '%1' doesn't support Windows compatibility mode.</source>
|
<source>Executable '%1' doesn't support Windows compatibility mode.</source>
|
||||||
<translation>EXE-filen '%1' stöder inte Windows kompatibilitetsläge.</translation>
|
<translation>EXE-filen '%1' stöder inte Windows kompatibilitetsläge.</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
#define VER_LAMEXP_MINOR_LO 9
|
#define VER_LAMEXP_MINOR_LO 9
|
||||||
#define VER_LAMEXP_TYPE Alpha
|
#define VER_LAMEXP_TYPE Alpha
|
||||||
#define VER_LAMEXP_PATCH 3
|
#define VER_LAMEXP_PATCH 3
|
||||||
#define VER_LAMEXP_BUILD 1414
|
#define VER_LAMEXP_BUILD 1415
|
||||||
#define VER_LAMEXP_CONFG 1348
|
#define VER_LAMEXP_CONFG 1348
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -135,8 +135,7 @@ void SplashScreen::showSplash(QThread *thread)
|
|||||||
for(int i = 1; i <= opacitySteps; i++)
|
for(int i = 1; i <= opacitySteps; i++)
|
||||||
{
|
{
|
||||||
const double opacity = (i < opacitySteps) ? (OPACITY_DELTA * static_cast<double>(i)) : 1.0;
|
const double opacity = (i < opacitySteps) ? (OPACITY_DELTA * static_cast<double>(i)) : 1.0;
|
||||||
splashScreen->setWindowOpacity(opacity);
|
splashScreen->setWindowOpacity(opacity); //splashScreen->update();
|
||||||
splashScreen->update();
|
|
||||||
ASYNC_WAIT(loop, FADE_DELAY);
|
ASYNC_WAIT(loop, FADE_DELAY);
|
||||||
SET_TASKBAR_STATE(true);
|
SET_TASKBAR_STATE(true);
|
||||||
}
|
}
|
||||||
@ -161,8 +160,7 @@ void SplashScreen::showSplash(QThread *thread)
|
|||||||
for(int i = opacitySteps; i >= 0; i--)
|
for(int i = opacitySteps; i >= 0; i--)
|
||||||
{
|
{
|
||||||
const double opacity = OPACITY_DELTA * static_cast<double>(i);
|
const double opacity = OPACITY_DELTA * static_cast<double>(i);
|
||||||
splashScreen->setWindowOpacity(opacity);
|
splashScreen->setWindowOpacity(opacity); //splashScreen->update();
|
||||||
splashScreen->update();
|
|
||||||
ASYNC_WAIT(loop, FADE_DELAY);
|
ASYNC_WAIT(loop, FADE_DELAY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ static int lamexp_main(int argc, char* argv[])
|
|||||||
bool bAccepted = true;
|
bool bAccepted = true;
|
||||||
|
|
||||||
//Increase "main" thread priority
|
//Increase "main" thread priority
|
||||||
SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_HIGHEST);
|
SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_ABOVE_NORMAL);
|
||||||
|
|
||||||
//Get CLI arguments
|
//Get CLI arguments
|
||||||
const QStringList &arguments = lamexp_arguments();
|
const QStringList &arguments = lamexp_arguments();
|
||||||
@ -271,7 +271,7 @@ int main(int argc, char* argv[])
|
|||||||
{
|
{
|
||||||
__try
|
__try
|
||||||
{
|
{
|
||||||
SetErrorMode(GetErrorMode() | SEM_FAILCRITICALERRORS | SEM_NOOPENFILEERRORBOX);
|
SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOOPENFILEERRORBOX);
|
||||||
SetUnhandledExceptionFilter(lamexp_exception_handler);
|
SetUnhandledExceptionFilter(lamexp_exception_handler);
|
||||||
_set_invalid_parameter_handler(lamexp_invalid_param_handler);
|
_set_invalid_parameter_handler(lamexp_invalid_param_handler);
|
||||||
return _main(argc, argv);
|
return _main(argc, argv);
|
||||||
|
Loading…
Reference in New Issue
Block a user