diff options
Diffstat (limited to 'src/Common/Dlgcode.c')
-rw-r--r-- | src/Common/Dlgcode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c index 5a837865..5e2dc39a 100644 --- a/src/Common/Dlgcode.c +++ b/src/Common/Dlgcode.c @@ -14238,9 +14238,10 @@ cleanup: // 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 +// Use this security mechanism only starting from Windows Vista void SafeOpenURL (LPCWSTR szUrl) { - if (IsAdmin ()) + if (IsAdmin () && IsOSAtLeast (WIN_VISTA)) { WCHAR szRunDllPath[TC_MAX_PATH]; WCHAR szUrlDllPath[TC_MAX_PATH]; |