diff options
Diffstat (limited to 'opencl')
-rw-r--r-- | opencl/source/openclwrapper.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/opencl/source/openclwrapper.cxx b/opencl/source/openclwrapper.cxx index 73412e9fff58..71e6722f83dc 100644 --- a/opencl/source/openclwrapper.cxx +++ b/opencl/source/openclwrapper.cxx @@ -502,10 +502,10 @@ bool initOpenCLRunEnv( GPUEnv *gpuInfo ) const bool bIsNotWinOrIsWin8OrGreater = IsWindows8OrGreater(); # else bool bIsNotWinOrIsWin8OrGreater = true; - OSVERSIONINFO aVersionInfo; + OSVERSIONINFOW aVersionInfo; memset( &aVersionInfo, 0, sizeof(aVersionInfo) ); aVersionInfo.dwOSVersionInfoSize = sizeof( aVersionInfo ); - if (GetVersionEx( &aVersionInfo )) + if (GetVersionExW( &aVersionInfo )) { // Windows 7 or lower? if (aVersionInfo.dwMajorVersion < 6 || |