mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 19:08:26 -06:00
Windows: use fix for CVE-2019-19501 only on Vista and above since it doesn't make sens under XP.
This commit is contained in:
@@ -14238,9 +14238,10 @@ cleanup:
|
|||||||
|
|
||||||
// This function always loads a URL in a non-privileged mode
|
// This function always loads a URL in a non-privileged mode
|
||||||
// If current process has admin privileges, we execute the command "rundll32 url.dll,FileProtocolHandler URL" as non-elevated
|
// If current process has admin privileges, we execute the command "rundll32 url.dll,FileProtocolHandler URL" as non-elevated
|
||||||
|
// Use this security mechanism only starting from Windows Vista
|
||||||
void SafeOpenURL (LPCWSTR szUrl)
|
void SafeOpenURL (LPCWSTR szUrl)
|
||||||
{
|
{
|
||||||
if (IsAdmin ())
|
if (IsAdmin () && IsOSAtLeast (WIN_VISTA))
|
||||||
{
|
{
|
||||||
WCHAR szRunDllPath[TC_MAX_PATH];
|
WCHAR szRunDllPath[TC_MAX_PATH];
|
||||||
WCHAR szUrlDllPath[TC_MAX_PATH];
|
WCHAR szUrlDllPath[TC_MAX_PATH];
|
||||||
|
|||||||
Reference in New Issue
Block a user