Skip to content

Commit

Permalink
Update windows dependency in the samply crate, too.
Browse files Browse the repository at this point in the history
  • Loading branch information
mstange committed Jan 21, 2025
1 parent 9a249ed commit a1687ee
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 52 deletions.
53 changes: 4 additions & 49 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion samply/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ etw-reader = { path = "../etw-reader" }
# linux-perf-data = "0.10.1"

[target.'cfg(windows)'.dependencies.windows]
version = "0.58"
version = "0.59"
features = ["Win32",
"Win32_Foundation",
"Win32_Security",
Expand Down
4 changes: 2 additions & 2 deletions samply/src/windows/winutils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::os::windows::ffi::{OsStrExt, OsStringExt};
use std::ptr::null_mut;

use windows::core::{PCWSTR, PWSTR};
use windows::Win32::Foundation::{CloseHandle, GetLastError, FALSE, HANDLE, LUID, MAX_PATH};
use windows::Win32::Foundation::{CloseHandle, GetLastError, HANDLE, LUID, MAX_PATH};
use windows::Win32::Security::{
AdjustTokenPrivileges, GetTokenInformation, LookupPrivilegeValueW, TokenElevation,
SE_PRIVILEGE_ENABLED, TOKEN_ADJUST_PRIVILEGES, TOKEN_ELEVATION, TOKEN_PRIVILEGES, TOKEN_QUERY,
Expand Down Expand Up @@ -75,7 +75,7 @@ pub fn enable_debug_privilege() {

if AdjustTokenPrivileges(
h_token,
FALSE,
false,
Some(&tp),
std::mem::size_of::<TOKEN_PRIVILEGES>() as u32,
None,
Expand Down

0 comments on commit a1687ee

Please sign in to comment.