@@ -36,10 +36,10 @@ dup_handle(HANDLE input, HANDLE *output)
3636int
3737launch (
3838 const wchar_t *executable,
39- const wchar_t *origCmdLine ,
39+ const wchar_t *orig_cmd_line ,
4040 const wchar_t *insert_args,
4141 int skip_argc,
42- DWORD *exitCode
42+ DWORD *exit_code
4343) {
4444 HANDLE job;
4545 JOBOBJECT_EXTENDED_LIMIT_INFORMATION info;
@@ -49,13 +49,13 @@ launch(
4949 int lastError = 0 ;
5050 const wchar_t *cmdLine = NULL ;
5151
52- if (origCmdLine [0 ] == L' "' ) {
53- cmdLine = wcschr (origCmdLine + 1 , L' "' );
52+ if (orig_cmd_line [0 ] == L' "' ) {
53+ cmdLine = wcschr (orig_cmd_line + 1 , L' "' );
5454 } else {
55- cmdLine = wcschr (origCmdLine , L' ' );
55+ cmdLine = wcschr (orig_cmd_line , L' ' );
5656 }
5757
58- size_t n = wcslen (executable) + wcslen (origCmdLine ) + wcslen (insert_args) + 6 ;
58+ size_t n = wcslen (executable) + wcslen (orig_cmd_line ) + wcslen (insert_args) + 6 ;
5959 wchar_t *newCmdLine = (wchar_t *)HeapAlloc (GetProcessHeap (), HEAP_ZERO_MEMORY, n * sizeof (wchar_t ));
6060 if (!newCmdLine) {
6161 lastError = GetLastError ();
@@ -130,7 +130,7 @@ launch(
130130 AssignProcessToJobObject (job, pi.hProcess );
131131 CloseHandle (pi.hThread );
132132 WaitForSingleObjectEx (pi.hProcess , INFINITE, FALSE );
133- if (!GetExitCodeProcess (pi.hProcess , exitCode )) {
133+ if (!GetExitCodeProcess (pi.hProcess , exit_code )) {
134134 lastError = GetLastError ();
135135 }
136136exit:
0 commit comments