aboutsummaryrefslogtreecommitdiff
path: root/CPP/Windows/ProcessUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/Windows/ProcessUtils.cpp')
-rw-r--r--CPP/Windows/ProcessUtils.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/CPP/Windows/ProcessUtils.cpp b/CPP/Windows/ProcessUtils.cpp
index 9bf0538..607b4bb 100644
--- a/CPP/Windows/ProcessUtils.cpp
+++ b/CPP/Windows/ProcessUtils.cpp
@@ -46,9 +46,9 @@ WRes CProcess::Create(LPCWSTR imageName, const UString &params, LPCWSTR curDir)
46 #endif 46 #endif
47 params; 47 params;
48 #ifdef UNDER_CE 48 #ifdef UNDER_CE
49 curDir = 0; 49 curDir = NULL;
50 #else 50 #else
51 imageName = 0; 51 imageName = NULL;
52 #endif 52 #endif
53 PROCESS_INFORMATION pi; 53 PROCESS_INFORMATION pi;
54 BOOL result; 54 BOOL result;
@@ -57,12 +57,12 @@ WRes CProcess::Create(LPCWSTR imageName, const UString &params, LPCWSTR curDir)
57 { 57 {
58 STARTUPINFOA si; 58 STARTUPINFOA si;
59 si.cb = sizeof(si); 59 si.cb = sizeof(si);
60 si.lpReserved = 0; 60 si.lpReserved = NULL;
61 si.lpDesktop = 0; 61 si.lpDesktop = NULL;
62 si.lpTitle = 0; 62 si.lpTitle = NULL;
63 si.dwFlags = 0; 63 si.dwFlags = 0;
64 si.cbReserved2 = 0; 64 si.cbReserved2 = 0;
65 si.lpReserved2 = 0; 65 si.lpReserved2 = NULL;
66 66
67 CSysString curDirA; 67 CSysString curDirA;
68 if (curDir != 0) 68 if (curDir != 0)
@@ -76,12 +76,12 @@ WRes CProcess::Create(LPCWSTR imageName, const UString &params, LPCWSTR curDir)
76 { 76 {
77 STARTUPINFOW si; 77 STARTUPINFOW si;
78 si.cb = sizeof(si); 78 si.cb = sizeof(si);
79 si.lpReserved = 0; 79 si.lpReserved = NULL;
80 si.lpDesktop = 0; 80 si.lpDesktop = NULL;
81 si.lpTitle = 0; 81 si.lpTitle = NULL;
82 si.dwFlags = 0; 82 si.dwFlags = 0;
83 si.cbReserved2 = 0; 83 si.cbReserved2 = 0;
84 si.lpReserved2 = 0; 84 si.lpReserved2 = NULL;
85 85
86 result = CreateProcessW(imageName, params2.Ptr_non_const(), 86 result = CreateProcessW(imageName, params2.Ptr_non_const(),
87 NULL, NULL, FALSE, 0, NULL, curDir, &si, &pi); 87 NULL, NULL, FALSE, 0, NULL, curDir, &si, &pi);
@@ -96,7 +96,7 @@ WRes CProcess::Create(LPCWSTR imageName, const UString &params, LPCWSTR curDir)
96WRes MyCreateProcess(LPCWSTR imageName, const UString &params) 96WRes MyCreateProcess(LPCWSTR imageName, const UString &params)
97{ 97{
98 CProcess process; 98 CProcess process;
99 return process.Create(imageName, params, 0); 99 return process.Create(imageName, params, NULL);
100} 100}
101 101
102} 102}