diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2012-02-11 02:40:34 +0400 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2012-02-11 02:44:52 +0400 |
commit | ae039e27ea41e485027159c4e335bfb87d24fd1c (patch) | |
tree | 0be99238faa97d8c2453d4bec1d5ee00945bc865 /LAVFilters.iss | |
parent | 29f0c3423d0e7e153fe7359c62827c7ebb81df75 (diff) |
Protect unconditional access to HKCR64 with IsWin64 checks
Diffstat (limited to 'LAVFilters.iss')
-rw-r--r-- | LAVFilters.iss | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/LAVFilters.iss b/LAVFilters.iss index 31cdad52..c2b119bf 100644 --- a/LAVFilters.iss +++ b/LAVFilters.iss @@ -231,9 +231,11 @@ begin if CompareText(source, LavGUID) = 0 then RegDeleteKeyIncludingSubkeys(HKCR32, 'Media Type\{E436EB83-524F-11CE-9F53-0020AF0BA770}\' + f.subtype); end; - if RegQueryStringValue(HKCR64, 'Media Type\{E436EB83-524F-11CE-9F53-0020AF0BA770}\' + f.subtype, 'Source Filter', source) then begin - if CompareText(source, LavGUID) = 0 then - RegDeleteKeyIncludingSubkeys(HKCR64, 'Media Type\{E436EB83-524F-11CE-9F53-0020AF0BA770}\' + f.subtype); + if IsWin64 then begin + if RegQueryStringValue(HKCR64, 'Media Type\{E436EB83-524F-11CE-9F53-0020AF0BA770}\' + f.subtype, 'Source Filter', source) then begin + if CompareText(source, LavGUID) = 0 then + RegDeleteKeyIncludingSubkeys(HKCR64, 'Media Type\{E436EB83-524F-11CE-9F53-0020AF0BA770}\' + f.subtype); + end; end; end; end; @@ -278,9 +280,11 @@ begin if CompareText(source, LavGUID) = 0 then RegDeleteKeyIncludingSubkeys(HKCR32, 'Media Type\Extensions\.' + f.extensions[i]); end; - if RegQueryStringValue(HKCR64, 'Media Type\Extensions\.' + f.extensions[i], 'Source Filter', source) then begin - if CompareText(source, LavGUID) = 0 then - RegDeleteKeyIncludingSubkeys(HKCR64, 'Media Type\Extensions\.' + f.extensions[i]); + if IsWin64 then begin + if RegQueryStringValue(HKCR64, 'Media Type\Extensions\.' + f.extensions[i], 'Source Filter', source) then begin + if CompareText(source, LavGUID) = 0 then + RegDeleteKeyIncludingSubkeys(HKCR64, 'Media Type\Extensions\.' + f.extensions[i]); + end; end; end; |