Skip to content
This repository has been archived by the owner on Jan 3, 2018. It is now read-only.

Commit

Permalink
Fixed wrong patch being applied on Win10/x64 (closes #2)
Browse files Browse the repository at this point in the history
  • Loading branch information
riverar committed Mar 1, 2015
1 parent 04458bd commit e1fde18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/driver/miscroutines.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@ DetermineVersionCompat( VOID )

if (g_bIs64Bit)
{
if ((osVer.dwMajorVersion == 10 && osVer.dwMinorVersion == 0) || (osVer.dwMajorVersion == 6 && osVer.dwMinorVersion < 3))
if ((osVer.dwMajorVersion == 6 && osVer.dwMinorVersion < 3))
{
g_CodeBytes.ulByteCount = sizeof(g_CodeBytes_64bit_WinVista_greater);
g_CodeBytes.pBytes = (PUCHAR)&g_CodeBytes_64bit_WinVista_greater;
}
else if(osVer.dwMajorVersion == 6 && osVer.dwMinorVersion > 3)
else if ((osVer.dwMajorVersion == 6 && osVer.dwMinorVersion > 3) || (osVer.dwMajorVersion == 10 && osVer.dwMinorVersion == 0))
{
g_CodeBytes.ulByteCount = sizeof(g_CodeBytes_64bit_Win8_greater);
g_CodeBytes.pBytes = (PUCHAR)&g_CodeBytes_64bit_Win8_greater;
Expand Down

0 comments on commit e1fde18

Please sign in to comment.