mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-07 01:15:00 -06:00
23.01
This commit is contained in:
@@ -46,9 +46,9 @@ WRes CProcess::Create(LPCWSTR imageName, const UString ¶ms, LPCWSTR curDir)
|
||||
#endif
|
||||
params;
|
||||
#ifdef UNDER_CE
|
||||
curDir = 0;
|
||||
curDir = NULL;
|
||||
#else
|
||||
imageName = 0;
|
||||
imageName = NULL;
|
||||
#endif
|
||||
PROCESS_INFORMATION pi;
|
||||
BOOL result;
|
||||
@@ -57,12 +57,12 @@ WRes CProcess::Create(LPCWSTR imageName, const UString ¶ms, LPCWSTR curDir)
|
||||
{
|
||||
STARTUPINFOA si;
|
||||
si.cb = sizeof(si);
|
||||
si.lpReserved = 0;
|
||||
si.lpDesktop = 0;
|
||||
si.lpTitle = 0;
|
||||
si.lpReserved = NULL;
|
||||
si.lpDesktop = NULL;
|
||||
si.lpTitle = NULL;
|
||||
si.dwFlags = 0;
|
||||
si.cbReserved2 = 0;
|
||||
si.lpReserved2 = 0;
|
||||
si.lpReserved2 = NULL;
|
||||
|
||||
CSysString curDirA;
|
||||
if (curDir != 0)
|
||||
@@ -76,12 +76,12 @@ WRes CProcess::Create(LPCWSTR imageName, const UString ¶ms, LPCWSTR curDir)
|
||||
{
|
||||
STARTUPINFOW si;
|
||||
si.cb = sizeof(si);
|
||||
si.lpReserved = 0;
|
||||
si.lpDesktop = 0;
|
||||
si.lpTitle = 0;
|
||||
si.lpReserved = NULL;
|
||||
si.lpDesktop = NULL;
|
||||
si.lpTitle = NULL;
|
||||
si.dwFlags = 0;
|
||||
si.cbReserved2 = 0;
|
||||
si.lpReserved2 = 0;
|
||||
si.lpReserved2 = NULL;
|
||||
|
||||
result = CreateProcessW(imageName, params2.Ptr_non_const(),
|
||||
NULL, NULL, FALSE, 0, NULL, curDir, &si, &pi);
|
||||
@@ -96,7 +96,7 @@ WRes CProcess::Create(LPCWSTR imageName, const UString ¶ms, LPCWSTR curDir)
|
||||
WRes MyCreateProcess(LPCWSTR imageName, const UString ¶ms)
|
||||
{
|
||||
CProcess process;
|
||||
return process.Create(imageName, params, 0);
|
||||
return process.Create(imageName, params, NULL);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user