From 52ea07376a5af6801fdff0ac7f92ff7d2196a4fa Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 13 Feb 2016 23:40:59 +0100 Subject: [PATCH] Changed: Useless code, but later we could call launchProgram --- code/ryzom/client/src/login_patch.cpp | 41 --------------------------- 1 file changed, 41 deletions(-) diff --git a/code/ryzom/client/src/login_patch.cpp b/code/ryzom/client/src/login_patch.cpp index 239128fbd..cd249ac1e 100644 --- a/code/ryzom/client/src/login_patch.cpp +++ b/code/ryzom/client/src/login_patch.cpp @@ -2794,49 +2794,8 @@ void CPatchThread::xDeltaPatch(const string &patch, const string &src, const str // Launching xdelta /* - STARTUPINFO si; - PROCESS_INFORMATION pi; - - ZeroMemory( &si, sizeof(si) ); - si.dwFlags = STARTF_USESHOWWINDOW; - si.wShowWindow = SW_HIDE; - si.cb = sizeof(si); - - ZeroMemory( &pi, sizeof(pi) ); - // Start the child process. string strCmdLine = "xdelta patch " + patch + " " + src + " " + out; - - if( !CreateProcess( NULL, // No module name (use command line). - (char*)strCmdLine.c_str(), // Command line. - NULL, // Process handle not inheritable. - NULL, // Thread handle not inheritable. - FALSE, // Set handle inheritance to FALSE. - 0, // No creation flags. - NULL, // Use parent's environment block. - NULL, // Use parent's starting directory. - &si, // Pointer to STARTUPINFO structure. - &pi ) // Pointer to PROCESS_INFORMATION structure. - ) - { - // error occurs during the launch - string str = toString("Can't execute '%s'", strCmdLine.c_str()); - throw Exception (str); - } - - // Wait for the process to terminate - DWORD dwTimeout = 1000 * 300; // 5 min = 300 s - DWORD nRetWait = WaitForSingleObject(pi.hProcess, dwTimeout); - - if (nRetWait == WAIT_TIMEOUT) - { - string str = toString("Time Out After %d s", dwTimeout/1000); - throw Exception (str); - } - - // Close process and thread handles. - CloseHandle( pi.hProcess ); - CloseHandle( pi.hThread ); */ }