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

Win32: fix version checks

parent f2f9617e
...@@ -247,7 +247,7 @@ void VideoWidget::release( void ) ...@@ -247,7 +247,7 @@ void VideoWidget::release( void )
LPTASKBARLIST3 p_taskbl; LPTASKBARLIST3 p_taskbl;
OSVERSIONINFO winVer; OSVERSIONINFO winVer;
winVer.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); winVer.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
if( GetVersionEx(&winVer) && winVer.dwMajorVersion > 5 && winVer.dwMajorVersion > 0 ) if( GetVersionEx(&winVer) && winVer.dwMajorVersion > 5 )
{ {
CoInitialize( 0 ); CoInitialize( 0 );
......
...@@ -486,7 +486,7 @@ void MainInterface::createTaskBarButtons() ...@@ -486,7 +486,7 @@ void MainInterface::createTaskBarButtons()
*/ */
OSVERSIONINFO winVer; OSVERSIONINFO winVer;
winVer.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); 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 if(himl = ImageList_Create( 15, //cx
18, //cy 18, //cy
......
...@@ -802,7 +802,7 @@ void UpdateRects( vout_thread_t *p_vout, bool b_force ) ...@@ -802,7 +802,7 @@ void UpdateRects( vout_thread_t *p_vout, bool b_force )
LPTASKBARLIST3 p_taskbl; LPTASKBARLIST3 p_taskbl;
OSVERSIONINFO winVer; OSVERSIONINFO winVer;
winVer.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); winVer.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
if( GetVersionEx(&winVer) && winVer.dwMajorVersion > 5 && winVer.dwMajorVersion > 0 ) if( GetVersionEx(&winVer) && winVer.dwMajorVersion > 5 )
{ {
CoInitialize( 0 ); 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