Update "check.c" to be C23 compliant

Fixes compilation errors with GCC 15.

Signed-off-by: Arthur Sengileyev <arthur.sengileyev@gmail.com>
This commit is contained in:
Arthur Sengileyev
2025-04-29 11:10:45 +03:00
parent ce0bac24e5
commit ae9e85bfc5

View File

@ -3,7 +3,7 @@
BOOL isWSLEnabled(); BOOL isWSLEnabled();
BOOL isHyperVEnabled(); BOOL isHyperVEnabled();
LPCWSTR boolToNStr(BOOL bool); LPCWSTR boolToNStr(BOOL value);
LPCSTR szSvcNameHyperv = TEXT("vmms"); LPCSTR szSvcNameHyperv = TEXT("vmms");
/** /**
@ -43,8 +43,8 @@ LPCSTR szSvcNameHyperv = TEXT("vmms");
return 0; return 0;
} }
LPCWSTR boolToNStr(BOOL bool) { LPCWSTR boolToNStr(BOOL value) {
return bool ? L"1" : L"0"; return value ? L"1" : L"0";
} }
BOOL isWSLEnabled() { BOOL isWSLEnabled() {