From dc5e8a9556c641ef99f293c1cc5cbb04cd18417d Mon Sep 17 00:00:00 2001 From: Roy Ivy III Date: Sat, 27 May 2023 15:24:42 -0500 Subject: [PATCH] change ~ (windows) minor comparison refactors --- src/platform/windows.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/windows.rs b/src/platform/windows.rs index 6568655..5702c35 100644 --- a/src/platform/windows.rs +++ b/src/platform/windows.rs @@ -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