comparison src/toplev.cc @ 6676:43fdc8e8ed28

[project @ 2007-05-31 19:35:58 by jwe]
author jwe
date Thu, 31 May 2007 19:35:58 +0000
parents bf4bdc21dc8d
children cd39d4a0b671
comparison
equal deleted inserted replaced
6675:f938c7018d28 6676:43fdc8e8ed28
556 STARTUPINFO si; 556 STARTUPINFO si;
557 PROCESS_INFORMATION pi; 557 PROCESS_INFORMATION pi;
558 ZeroMemory (&si, sizeof (si)); 558 ZeroMemory (&si, sizeof (si));
559 ZeroMemory (&pi, sizeof (pi)); 559 ZeroMemory (&pi, sizeof (pi));
560 OCTAVE_LOCAL_BUFFER (char, xcmd_str, cmd_str.length()+1); 560 OCTAVE_LOCAL_BUFFER (char, xcmd_str, cmd_str.length()+1);
561 strcpy (xcmd_str, cmd_str.c_str ()) 561 strcpy (xcmd_str, cmd_str.c_str ());
562 562
563 if (! CreateProcess (0, xcmd_str, 0, 0, FALSE, 0, 0, 0, &si, &pi)) 563 if (! CreateProcess (0, xcmd_str, 0, 0, FALSE, 0, 0, 0, &si, &pi))
564 error ("system: CreateProcess failed -- can't create child process"); 564 error ("system: CreateProcess failed -- can't create child process");
565 else 565 else
566 { 566 {