Permalink
Browse files

Windows: Oops, backwards.

  • Loading branch information...
unknownbrackets committed Sep 30, 2018
1 parent 034ad24 commit f90439a70e1dfcc15eb0e4ede8bc6001fbba0725
Showing with 1 addition and 1 deletion.
  1. +1 −1 Common/OSVersion.cpp
View
@@ -48,7 +48,7 @@ bool DoesVersionMatchWindows(uint32_t major, uint32_t minor, uint32_t spMajor, u
uint32_t actualMajor, actualMinor, actualBuild;
if (GetVersionFromKernel32(actualMajor, actualMinor, actualBuild)) {
if (greater)
return major > actualMajor || (major == actualMajor && minor >= actualMinor);
return actualMajor > major || (major == actualMajor && actualMinor >= minor);
return major == actualMajor && minor == actualMinor;
}
}

0 comments on commit f90439a

Please sign in to comment.