diff --git a/projects/clr/opencl/tests/ocltst/env/ocltst.cpp b/projects/clr/opencl/tests/ocltst/env/ocltst.cpp index 255f4d4fd7..977d4de4cf 100644 --- a/projects/clr/opencl/tests/ocltst/env/ocltst.cpp +++ b/projects/clr/opencl/tests/ocltst/env/ocltst.cpp @@ -1459,7 +1459,7 @@ int main(int argc, char** argv) { unsigned int platform = 0; platform = parseCommandLineForPlatform(argc, argv); // reset optind as we really didn't parse the full command line - optind = 0; + optind = 1; App app(platform); #ifdef ATI_OS_WIN // this function is registers windows service routine when ocltst is launched