mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-14 17:39:37 -04:00
Added workaround for crash on Windows 7 for Qt versions with gcc 5.3.0.
The call to GetProcAddress in openssl (cryptlib.c) finds an function pointer to the not existing function _OPENSSL_isservice in the executable running on Windows 7.
This commit is contained in:
parent
313e1b3402
commit
0316c8c5ae
1 changed files with 17 additions and 0 deletions
|
@ -59,6 +59,23 @@
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef Q_OS_WIN
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK (5, 7, 0)
|
||||||
|
// see INSTALL.W32 in openssl
|
||||||
|
// Needed as workaround for gcc 5.3.0 because the call to GetProcAddress in cryptlib.c finds an function pointer
|
||||||
|
// to the not existing function _OPENSSL_isservice in the executable running on Windows 7.
|
||||||
|
extern "C" {
|
||||||
|
__declspec(dllexport) __cdecl BOOL _OPENSSL_isservice(void)
|
||||||
|
{
|
||||||
|
DWORD sess;
|
||||||
|
if (ProcessIdToSessionId(GetCurrentProcessId(),&sess))
|
||||||
|
return sess==0;
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/*** WINDOWS DON'T LIKE THIS - REDEFINES VER numbers.
|
/*** WINDOWS DON'T LIKE THIS - REDEFINES VER numbers.
|
||||||
#include <gui/qskinobject/qskinobject.h>
|
#include <gui/qskinobject/qskinobject.h>
|
||||||
****/
|
****/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue