Skip to content

Commit

Permalink
Release 5.0.3 Fix duplicate capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
fcharlie committed Mar 7, 2023
1 parent a5834d4 commit ce9f43d
Show file tree
Hide file tree
Showing 6 changed files with 732 additions and 59 deletions.
4 changes: 2 additions & 2 deletions AppExec/capabilities.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ bool App::InitializeCapabilities() {
memset(&lvw, 0, sizeof(lvw));
lvw.cx = 200;
ListView_InsertColumn(appx.hlview, 0, &lvw);
constexpr std::size_t wnlen = sizeof(wncas) / sizeof(CapabilityName);
constexpr std::size_t wnlen = sizeof(capabilityNames) / sizeof(CapabilityName);
for (std::size_t n = wnlen; n > 0; n--) {
const auto &w = wncas[n - 1];
const auto &w = capabilityNames[n - 1];
LVITEMW item;
ZeroMemory(&item, sizeof(item));
item.mask = LVIF_TEXT | LVIF_PARAM;
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ endif()
#
set(PRIVEXEC_VERSION_MAJOR 5)
set(PRIVEXEC_VERSION_MINOR 0)
set(PRIVEXEC_VERSION_PATCH 2)
set(PRIVEXEC_VERSION_PATCH 3)
set(PACKAGE_VERSION "${PRIVEXEC_VERSION_MAJOR}.${PRIVEXEC_VERSION_MINOR}.${PRIVEXEC_VERSION_PATCH}")

string(TOLOWER "${CMAKE_C_COMPILER_ARCHITECTURE_ID}" COMPILER_ARCH_ID)
Expand Down
4 changes: 2 additions & 2 deletions Privexec/capabilities.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ bool App::InitializeCapabilities() {
memset(&lvw, 0, sizeof(lvw));
lvw.cx = 200;
ListView_InsertColumn(capabilities.hlview, 0, &lvw);
constexpr std::size_t wnlen = sizeof(wncas) / sizeof(CapabilityName);
constexpr std::size_t wnlen = sizeof(capabilityNames) / sizeof(CapabilityName);
for (std::size_t n = wnlen; n > 0; n--) {
const auto &w = wncas[n - 1];
const auto &w = capabilityNames[n - 1];
LVITEMW item;
ZeroMemory(&item, sizeof(item));
item.mask = LVIF_TEXT | LVIF_PARAM;
Expand Down

0 comments on commit ce9f43d

Please sign in to comment.