Skip to content

Commit 13c57b7

Browse files
committed
Naming conventions
1 parent fb9b7c0 commit 13c57b7

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/pymanager/_launch.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ dup_handle(HANDLE input, HANDLE *output)
3636
int
3737
launch(
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
}
136136
exit:

src/pymanager/_launch.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
int launch(
22
const wchar_t *executable,
3-
const wchar_t *origCmdLine,
3+
const wchar_t *orig_cmd_line,
44
const wchar_t *insert_args,
55
int skip_argc,
6-
DWORD *exitCode
6+
DWORD *exit_code
77
);

0 commit comments

Comments
 (0)