@@ -53,19 +53,18 @@ OSVR_INLINE OSVR_ReturnCode osvrStartProcess(const char* executablePath, const c
5353 return OSVR_RETURN_FAILURE ;
5454#else
5555#if defined(OSVR_WINDOWS )
56- STARTUPINFO startupInfo ;
57- PROCESS_INFORMATION processInfo ;
58- memset (& startupInfo , 0 , sizeof (startupInfo ));
59- memset (& processInfo , 0 , sizeof (processInfo ));
56+ STARTUPINFO startupInfo = { 0 };
57+ PROCESS_INFORMATION processInfo = { 0 };
58+
6059 startupInfo .dwFlags |= STARTF_USESHOWWINDOW ;
6160 startupInfo .wShowWindow = SW_SHOW ;
62- if (!CreateProcess (executablePath , NULL , NULL , NULL , FALSE, CREATE_NEW_CONSOLE , NULL ,
61+ if (!CreateProcess (executablePath , nullptr , nullptr , nullptr , FALSE, CREATE_NEW_CONSOLE , nullptr ,
6362 workingDirectory , & startupInfo , & processInfo )) {
6463 OSVR_DEV_VERBOSE ("Could not start process." );
6564 return OSVR_RETURN_FAILURE ;
6665 }
6766#else
68- OSVR_DEV_VERBOSE ("osvrStartProces not yet implemented for non-Windows platforms" );
67+ OSVR_DEV_VERBOSE ("osvrStartProcess not yet implemented for non-Windows platforms" );
6968 return OSVR_RETURN_FAILURE ;
7069 // UNTESTED (or even compiled)
7170 //pid_t pid = fork();
0 commit comments