mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-28 05:53:29 +01: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:
parent
5e96a5c44c
commit
07bb27e3b9
@ -14238,9 +14238,10 @@ static bool RunAsDesktopUser(
|
|||||||
|
|
||||||
// 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];
|
||||||
|
Loading…
Reference in New Issue
Block a user