mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00:00
Alpha 1.0.20: fix crash in old Windows versions.
A shell32 method SHCreateItemFromParsingName was used without checking if it was successfully loaded from shell32.dll (Vista+).
This commit is contained in:
@@ -84,9 +84,6 @@ using namespace Platform;
|
||||
namespace {
|
||||
QStringList _initLogs;
|
||||
|
||||
bool useOpenWith = false;
|
||||
bool useOpenAs = false;
|
||||
bool useShellapi = false;
|
||||
bool themeInited = false;
|
||||
bool finished = true;
|
||||
QMargins simpleMargins, margins;
|
||||
@@ -96,10 +93,6 @@ namespace {
|
||||
public:
|
||||
_PsInitializer() {
|
||||
Dlls::start();
|
||||
|
||||
useOpenWith = (Dlls::SHAssocEnumHandlers != nullptr) && (Dlls::SHCreateItemFromParsingName != nullptr);
|
||||
useOpenAs = (Dlls::SHOpenWithDialog != nullptr) || (Dlls::OpenAs_RunDLL != nullptr);
|
||||
useShellapi = (Dlls::SHQueryUserNotificationState != nullptr);
|
||||
}
|
||||
};
|
||||
_PsInitializer _psInitializer;
|
||||
|
Reference in New Issue
Block a user