Skip to content

Commit 31d214d

Browse files
authored
Merge pull request #8170 from geoffw0/typos
C++: Fix Spelling Typos.
2 parents 894992d + 4908eaf commit 31d214d

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

cpp/ql/test/query-tests/Security/CWE/CWE-428/UnsafeCreateProcessCall.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -99,19 +99,19 @@ void positiveTestCases()
9999
void* h = 0;
100100
wchar_t* lpApplicationName = NULL;
101101

102-
// CreatePorcessA
102+
// CreateProcessA
103103
CreateProcessA( //BUG
104104
NULL,
105105
(char*)"C:\\Program Files\\MyApp",
106106
NULL, NULL, FALSE, 0, NULL, NULL, NULL, NULL);
107107

108-
// CreatePorcessW
108+
// CreateProcessW
109109
CreateProcessW( //BUG
110110
NULL,
111111
(wchar_t*)L"C:\\Program Files\\MyApp",
112112
NULL, NULL, FALSE, 0, NULL, NULL, NULL, NULL);
113113

114-
// CreatePorcess
114+
// CreateProcess
115115
CreateProcess( //BUG
116116
NULL,
117117
(wchar_t*)L"C:\\Program Files\\MyApp",
@@ -162,7 +162,7 @@ void positiveTestCases()
162162
(wchar_t*)L"C:\\Program Files\\MyApp",
163163
NULL, NULL, FALSE, 0, NULL, NULL, NULL, NULL);
164164

165-
// CreatePorcess with a hardcoded variable for application Name (NULL)
165+
// CreateProcess with a hardcoded variable for application Name (NULL)
166166
// Variation: tab instead of space
167167
CreateProcess( //BUG
168168
lpApplicationName,
@@ -276,19 +276,19 @@ void negativeTestCases_quotedCommandLine()
276276
void* h = 0;
277277
wchar_t* lpApplicationName = NULL;
278278

279-
// CreatePorcessA
279+
// CreateProcessA
280280
CreateProcessA(
281281
NULL,
282282
(char*)"\"C:\\Program Files\\MyApp\"",
283283
NULL, NULL, FALSE, 0, NULL, NULL, NULL, NULL);
284284

285-
// CreatePorcessW
285+
// CreateProcessW
286286
CreateProcessW(
287287
NULL,
288288
(wchar_t*)L"\"C:\\Program Files\\MyApp\"",
289289
NULL, NULL, FALSE, 0, NULL, NULL, NULL, NULL);
290290

291-
// CreatePorcess
291+
// CreateProcess
292292
CreateProcess(
293293
NULL,
294294
(wchar_t*)L"\"C:\\Program Files\\MyApp\"",
@@ -339,7 +339,7 @@ void negativeTestCases_quotedCommandLine()
339339
(wchar_t*)L"\"C:\\Program Files\\MyApp\"",
340340
NULL, NULL, FALSE, 0, NULL, NULL, NULL, NULL);
341341

342-
// CreatePorcess with a hardcoded variable for application Name (NULL)
342+
// CreateProcess with a hardcoded variable for application Name (NULL)
343343
CreateProcess(
344344
lpApplicationName,
345345
(wchar_t*)L"\"C:\\Program Files\\MyApp\"",
@@ -359,19 +359,19 @@ void negativeTestCases_AppNameSet()
359359
void* h = 0;
360360
const wchar_t* lpApplicationName = (const wchar_t*)L"MyApp.exe";
361361

362-
// CreatePorcessA
362+
// CreateProcessA
363363
CreateProcessA(
364364
(char*)"MyApp.exe",
365365
(char*)"C:\\Program Files\\MyApp",
366366
NULL, NULL, FALSE, 0, NULL, NULL, NULL, NULL);
367367

368-
// CreatePorcessW
368+
// CreateProcessW
369369
CreateProcessW(
370370
(wchar_t*)L"MyApp.exe",
371371
(wchar_t*)L"C:\\Program Files\\MyApp",
372372
NULL, NULL, FALSE, 0, NULL, NULL, NULL, NULL);
373373

374-
// CreatePorcess
374+
// CreateProcess
375375
CreateProcess(
376376
(wchar_t*)L"MyApp.exe",
377377
(wchar_t*)L"C:\\Program Files\\MyApp",
@@ -422,7 +422,7 @@ void negativeTestCases_AppNameSet()
422422
(wchar_t*)L"C:\\Program Files\\MyApp",
423423
NULL, NULL, FALSE, 0, NULL, NULL, NULL, NULL);
424424

425-
// CreatePorcess with a hardcoded variable for application Name (NULL)
425+
// CreateProcess with a hardcoded variable for application Name (NULL)
426426
CreateProcess(
427427
(wchar_t*)lpApplicationName,
428428
(wchar_t*)L"C:\\Program Files\\MyApp",

0 commit comments

Comments
 (0)