- enable extended "read TOC" feature for Windows versions newer than XP (>= 5.1)

- TODO: move win32 specific cdrom stuff to a separate file
This commit is contained in:
Volker Ruppert 2011-08-24 10:48:05 +00:00
parent 5dde2dc744
commit a1b9a8e190

View File

@ -510,7 +510,8 @@ cdrom_interface::cdrom_interface(const char *dev)
bUseASPI = FALSE;
osinfo.dwOSVersionInfoSize = sizeof(osinfo);
GetVersionEx(&osinfo);
isWindowsXP = (osinfo.dwMajorVersion >= 5) && (osinfo.dwMinorVersion >= 1);
isWindowsXP = (osinfo.dwMajorVersion > 5) ||
((osinfo.dwMajorVersion == 5) && (osinfo.dwMinorVersion >= 1));
#endif
}