Skip to content

Commit 4c65bd3

Browse files
Fix RegOpenKeyExW uloptions parameter for windows crate 0.58 (#166)
The windows crate 0.58 takes u32 for the uloptions parameter, not Option<u32> (which is the 0.62 API). This broke the CI build.
1 parent 8e41493 commit 4c65bd3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/enclaveapp-windows/src/dpapi_fallback.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ fn detect_guest_services() -> Vec<String> {
350350
RegOpenKeyExW(
351351
HKEY_LOCAL_MACHINE,
352352
windows::core::PCWSTR(subkey_wide.as_ptr()),
353-
Some(0),
353+
0,
354354
KEY_READ,
355355
&mut hkey,
356356
)
@@ -440,7 +440,7 @@ fn hyperv_guest_parameters_exist() -> bool {
440440
RegOpenKeyExW(
441441
HKEY_LOCAL_MACHINE,
442442
windows::core::PCWSTR(subkey.as_ptr()),
443-
Some(0),
443+
0,
444444
KEY_READ,
445445
&mut hkey,
446446
)

0 commit comments

Comments
 (0)