@@ -16,6 +16,7 @@ import util;
16
16
17
17
using std::array;
18
18
using std::format;
19
+ using std::uint32_t ;
19
20
using std::wstring;
20
21
using namespace std ::string_literals;
21
22
@@ -88,15 +89,15 @@ void register_decoder_file_extension(const wchar_t* file_type_name, const wchar_
88
89
L" PhotoViewer.FileAssoc.Tiff" );
89
90
}
90
91
91
- void register_decoder_pattern (const wstring& sub_key, const int index, const std::span<const std::byte> pattern)
92
+ void register_decoder_pattern (const wstring& sub_key, const int index, const std::span<const std::byte> pattern)
92
93
{
93
- const wstring patterns_sub_key{sub_key + LR"( \Patterns\)" + std::to_wstring (index )};
94
- constexpr array mask{0xFF_byte, 0xFF_byte};
95
- registry::set_value (patterns_sub_key, L" Length" , static_cast <uint32_t >(pattern.size ()));
96
- registry::set_value (patterns_sub_key, L" Position" , 0U );
97
- registry::set_value (patterns_sub_key, L" Mask" , mask);
98
- registry::set_value (patterns_sub_key, L" Pattern" , pattern);
99
- }
94
+ const wstring patterns_sub_key{sub_key + LR"( \Patterns\)" + std::to_wstring (index )};
95
+ constexpr array mask{0xFF_byte, 0xFF_byte};
96
+ registry::set_value (patterns_sub_key, L" Length" , static_cast <uint32_t >(pattern.size ()));
97
+ registry::set_value (patterns_sub_key, L" Position" , 0U );
98
+ registry::set_value (patterns_sub_key, L" Mask" , mask);
99
+ registry::set_value (patterns_sub_key, L" Pattern" , pattern);
100
+ }
100
101
101
102
void register_decoder ()
102
103
{
0 commit comments