Skip to content

Commit f6f02ca

Browse files
committed
修复版本判断逻辑
1 parent 918e293 commit f6f02ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Snap.Hutao.Remastered.Native/HutaoNative.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ HRESULT __stdcall HutaoNative::IsCurrentWindowsVersionSupported(BOOL* isSupporte
163163
HutaoPrivateWindowsVersion winver;
164164
GetWindowsVersion(&winver);
165165

166-
if (winver.major >= 10 && winver.minor >= 0 && winver.build >= 19045 && winver.revision >= 5371)
166+
if (winver.major > 10 || winver.minor > 0 || winver.build > 19045 || winver.revision >= 5371)
167167
{
168168
*isSupported = TRUE;
169169
return S_OK;

0 commit comments

Comments
 (0)