diff options
Diffstat (limited to 'opencl/source/openclwrapper.cxx')
-rw-r--r-- | opencl/source/openclwrapper.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/opencl/source/openclwrapper.cxx b/opencl/source/openclwrapper.cxx index a1aa5e90950c..179e6bda4da6 100644 --- a/opencl/source/openclwrapper.cxx +++ b/opencl/source/openclwrapper.cxx @@ -496,8 +496,7 @@ bool initOpenCLRunEnv( GPUEnv *gpuInfo ) const bool bIsNotWinOrIsWin8OrGreater = IsWindows8OrGreater(); # else bool bIsNotWinOrIsWin8OrGreater = true; - OSVERSIONINFOW aVersionInfo; - memset( &aVersionInfo, 0, sizeof(aVersionInfo) ); + OSVERSIONINFOW aVersionInfo = {}; aVersionInfo.dwOSVersionInfoSize = sizeof( aVersionInfo ); if (GetVersionExW( &aVersionInfo )) { |