Skip to content

Commit

Permalink
Fix warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
dchapyshev committed Oct 29, 2023
1 parent 2b8308b commit efb9bc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/host/process_monitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -495,8 +495,8 @@ bool ProcessMonitor::updateSnapshot()
NtQuerySystemInformationFunc nt_query_system_information_func =
reinterpret_cast<NtQuerySystemInformationFunc>(nt_query_system_info_func_);

NTSTATUS status = nt_query_system_information_func(
SystemProcessInformation, snapshot_.data(), snapshot_.size(), nullptr);
NTSTATUS status = nt_query_system_information_func(SystemProcessInformation,
snapshot_.data(), static_cast<DWORD>(snapshot_.size()), nullptr);
if (NT_SUCCESS(status))
return true;

Expand Down

0 comments on commit efb9bc9

Please sign in to comment.