Skip to content

Commit

Permalink
change ~ (windows) minor comparison refactors
Browse files Browse the repository at this point in the history
  • Loading branch information
rivy committed May 27, 2023
1 parent 6755330 commit dc5e8a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -390,14 +390,14 @@ where
info.wProductType = VER_NT_WORKSTATION;

let mask = WinAPI_VerSetConditionMask(0, VER_SUITENAME, VER_EQUAL);
let suite_mask = if WinAPI_VerifyVersionInfoW(&info, VER_SUITENAME, mask) != 0 {
let suite_mask = if WinAPI_VerifyVersionInfoW(&info, VER_SUITENAME, mask) != FALSE {
VER_SUITE_WH_SERVER
} else {
0
};

let mask = WinAPI_VerSetConditionMask(0, VER_PRODUCT_TYPE, VER_EQUAL);
let product_type = if WinAPI_VerifyVersionInfoW(&info, VER_PRODUCT_TYPE, mask) != 0 {
let product_type = if WinAPI_VerifyVersionInfoW(&info, VER_PRODUCT_TYPE, mask) != FALSE {
VER_NT_WORKSTATION
} else {
0
Expand Down

0 comments on commit dc5e8a9

Please sign in to comment.