Skip to content

Commit

Permalink
Minor RegistryValue fix; #148.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigocfd committed Feb 6, 2025
1 parent 94c1d08 commit f6b988e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/advapi/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,7 @@ impl RegistryValue {
*std::mem::transmute::<_, *const [u8; 8]>(buf.as_ptr()),
)
),
co::REG::SZ => {
let (_, vec16, _) = buf.align_to::<u16>();
RegistryValue::Sz(WString::from_wchars_slice(&vec16).to_string())
},
co::REG::EXPAND_SZ => {
co::REG::SZ | co::REG::EXPAND_SZ => {
let (_, vec16, _) = buf.align_to::<u16>();
RegistryValue::Sz(WString::from_wchars_slice(&vec16).to_string())
},
Expand Down

0 comments on commit f6b988e

Please # to comment.