see wine-devel's mail from Dan for the details A+ -- Eric Pouech
Name: wc_start ChangeLog: fixed regression in sub-process creation License: X11 GenDate: 2003/03/07 08:18:08 UTC ModifiedFiles: programs/wineconsole/wineconsole.c =================================================================== RCS file: /home/cvs/cvsroot/wine/wine/programs/wineconsole/wineconsole.c,v retrieving revision 1.22 diff -u -u -r1.22 wineconsole.c --- programs/wineconsole/wineconsole.c 4 Mar 2003 02:13:25 -0000 1.22 +++ programs/wineconsole/wineconsole.c 7 Mar 2003 08:16:03 -0000 @@ -658,6 +658,9 @@ CloseHandle(startup.hStdOutput); CloseHandle(startup.hStdError); + CloseHandle(info.hProcess); + CloseHandle(info.hThread); + return done; } @@ -742,14 +745,9 @@ break; case from_process_name: { - const char* src; - LPWSTR dst; WCHAR buffer[256]; - src = wci.ptr; dst = buffer; - while (*src && *src != ' ' && (dst - buffer < sizeof(buffer) / sizeof(WCHAR) - 1)) - *dst++ = *src++; - *dst = 0; + MultiByteToWideChar(CP_ACP, 0, wci.ptr, -1, buffer, sizeof(buffer) / sizeof(buffer[0])); if (!(data = WINECON_Init(hInst, GetCurrentProcessId(), buffer, wci.backend))) return 0;