Skip to content

Commit

Permalink
Fixed build-breaking update of WinReg
Browse files Browse the repository at this point in the history
Updated setup version
  • Loading branch information
nefarius committed May 11, 2024
1 parent 3dc94ac commit bb23155
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Setup/HidHide.aip
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
<ROW Property="ARPURLUPDATEINFO" Value="https://github.com/nefarius/HidHide/releases"/>
<ROW Property="IAgree" Value="No" Type="4"/>
<ROW Property="Manufacturer" Value="Nefarius Software Solutions e.U."/>
<ROW Property="ProductCode" Value="1033:{0B3F1B3F-98BC-4A84-8F71-DDEC7FD6A45B} " Type="16"/>
<ROW Property="ProductCode" Value="1033:{89B7AB56-588E-4061-9F3C-79C64AA0CE6C} " Type="16"/>
<ROW Property="ProductLanguage" Value="1033"/>
<ROW Property="ProductName" Value="HidHide"/>
<ROW Property="ProductVersion" Value="1.5.212" Options="32"/>
<ROW Property="ProductVersion" Value="1.5.224" Options="32"/>
<ROW Property="REBOOT" MultiBuildValue="DefaultBuild:Force"/>
<ROW Property="SecureCustomProperties" Value="OLDPRODUCTS;AI_NEWERPRODUCTFOUND;UPGRADE_1"/>
<ROW Property="UpgradeCode" Value="{8822CC70-E2A5-4CB7-8F14-E27101150A1D}"/>
Expand Down
8 changes: 4 additions & 4 deletions Watchdog/Util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ bool util::AddDeviceClassFilter(const GUID* classGuid, const std::wstring& filte
//
// Filter not there yet, add
//
if (std::find(filters.begin(), filters.end(), filterName) == filters.end())
if (std::ranges::find(filters, filterName) == filters.end())
{
filters.emplace_back(filterName);
}

const std::vector<wchar_t> multiString = winreg::detail::BuildMultiString(filters);
const std::vector<wchar_t> multiString = winreg::winreg_internal::BuildMultiString(filters);

const auto& dataSize = multiString.size() * sizeof(wchar_t);

Expand Down Expand Up @@ -103,7 +103,7 @@ bool util::AddDeviceClassFilter(const GUID* classGuid, const std::wstring& filte
{
filters.emplace_back(filterName);

const std::vector<wchar_t> multiString = winreg::detail::BuildMultiString(filters);
const std::vector<wchar_t> multiString = winreg::winreg_internal::BuildMultiString(filters);

const auto dataSize = multiString.size() * sizeof(wchar_t);

Expand Down Expand Up @@ -196,7 +196,7 @@ bool util::RemoveDeviceClassFilter(const GUID* classGuid, const std::wstring& fi
len = wcslen(&temp[index]);
}

const std::vector<wchar_t> multiString = winreg::detail::BuildMultiString(filters);
const std::vector<wchar_t> multiString = winreg::winreg_internal::BuildMultiString(filters);

const auto dataSize = multiString.size() * sizeof(wchar_t);

Expand Down

0 comments on commit bb23155

Please sign in to comment.