Commit 1d100357 authored by Geoffroy Couprie's avatar Geoffroy Couprie

Win32: fix version checks

parent f2f9617e
......@@ -247,7 +247,7 @@ void VideoWidget::release( void )
LPTASKBARLIST3 p_taskbl;
OSVERSIONINFO winVer;
winVer.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
if( GetVersionEx(&winVer) && winVer.dwMajorVersion > 5 && winVer.dwMajorVersion > 0 )
if( GetVersionEx(&winVer) && winVer.dwMajorVersion > 5 )
{
CoInitialize( 0 );
......
......@@ -486,7 +486,7 @@ void MainInterface::createTaskBarButtons()
*/
OSVERSIONINFO winVer;
winVer.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
if( GetVersionEx(&winVer) && winVer.dwMajorVersion > 5 && winVer.dwMajorVersion > 0 )
if( GetVersionEx(&winVer) && winVer.dwMajorVersion > 5 )
{
if(himl = ImageList_Create( 15, //cx
18, //cy
......
......@@ -802,7 +802,7 @@ void UpdateRects( vout_thread_t *p_vout, bool b_force )
LPTASKBARLIST3 p_taskbl;
OSVERSIONINFO winVer;
winVer.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
if( GetVersionEx(&winVer) && winVer.dwMajorVersion > 5 && winVer.dwMajorVersion > 0 )
if( GetVersionEx(&winVer) && winVer.dwMajorVersion > 5 )
{
CoInitialize( 0 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment