diff --git a/EgtGeneral.vcxproj b/EgtGeneral.vcxproj
index ab5ebc3..2ffbe72 100644
--- a/EgtGeneral.vcxproj
+++ b/EgtGeneral.vcxproj
@@ -180,7 +180,7 @@ copy $(TargetPath) \EgtProg\Dll32
WIN32;I_AM_EGN;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)
AnySuitable
Speed
- NotSet
+ AdvancedVectorExtensions2
true
true
true
diff --git a/GetOsInfo.cpp b/GetOsInfo.cpp
index 893b606..427e3c7 100644
--- a/GetOsInfo.cpp
+++ b/GetOsInfo.cpp
@@ -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") ;