Skip to content

Commit

Permalink
Merge pull request #149 from FireDaemon/issues/#118
Browse files Browse the repository at this point in the history
Load registry value string only of type REG_SZ
  • Loading branch information
randomascii authored Mar 2, 2021
2 parents b0990e5 + a544b69 commit 9d7d94f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UIforETW/Utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ std::wstring ConvertToCRLF(const std::wstring& input)
std::wstring ReadRegistryString(HKEY root, const std::wstring& subkey, const std::wstring& valueName, bool force32Bit)
{
std::wstring value;
constexpr DWORD flags = RRF_RT_REG_SZ | RRF_RT_REG_EXPAND_SZ | RRF_ZEROONFAILURE;
constexpr DWORD flags = RRF_RT_REG_SZ | RRF_ZEROONFAILURE;

REGSAM openOptions = KEY_QUERY_VALUE;
if (force32Bit)
Expand Down

0 comments on commit 9d7d94f

Please sign in to comment.