EgtGeneral :
- in versione Release X64 abilitato AVX2.
This commit is contained in:
@@ -87,6 +87,8 @@ GetOsInfo( string& sOsInfo)
|
||||
osvi.dwOSVersionInfoSize = sizeof( OSVERSIONINFOEX) ;
|
||||
|
||||
// Se non recupero le informazioni, provo con forma semplificata
|
||||
#pragma warning( push)
|
||||
#pragma warning( disable : 4996)
|
||||
bool bOsVersionInfoEx = ( GetVersionEx( (OSVERSIONINFO *) &osvi) != FALSE) ;
|
||||
if ( ! bOsVersionInfoEx) {
|
||||
osvi.dwOSVersionInfoSize = sizeof (OSVERSIONINFO) ;
|
||||
@@ -96,6 +98,7 @@ GetOsInfo( string& sOsInfo)
|
||||
return false ;
|
||||
}
|
||||
}
|
||||
#pragma warning( pop)
|
||||
|
||||
// Chiamo GetNativeSystemInfo se supportato o GetSystemInfo altrimenti
|
||||
PGNSI pGNSI = (PGNSI) GetProcAddress( GetModuleHandle( TEXT( "kernel32.dll")), "GetNativeSystemInfo") ;
|
||||
|
||||
Reference in New Issue
Block a user