fixing bug #37452. File.execute() should work now.

This commit is contained in:
ssu%netscape.com 2000-05-08 22:46:21 +00:00
Родитель 885953491e
Коммит 69ab09b5a9
1 изменённых файлов: 13 добавлений и 0 удалений

Просмотреть файл

@ -799,6 +799,19 @@ nsInstallFileOpItem::NativeFileOpFileExecuteComplete()
//mTarget->Execute(*mParams);
//mTarget->Spawn(nsAutoCString(*mParams), 0);
char *cParams[1];
cParams[0] = nsnull;
cParams[0] = mParams->ToNewCString();
if(cParams[0] == nsnull)
return nsInstall::OUT_OF_MEMORY;
mTarget->Spawn((const char **)&cParams[0], 1);
if(cParams[0])
delete(cParams[0]);
// We don't care if it succeeded or not since we
// don't wait for the process to end anyways.
// If the file doesn't exist, it was already detected