mscoree: Invoke installed win32 mono runtime or exec mono
native for .NET executables (try 3)
Hans Leidekker
hans at it.vu.nl
Mon Oct 9 14:02:36 CDT 2006
On Monday 09 October 2006 18:28, Paul Chitescu wrote:
+ /* set current directory so we can find mono's DLLs */
+ chdir(buf1);
I think you are calling Unix chdir on a Windows path here. Also,
buf1 is hardly a descriptive name and statically allocating 256
bytes for a path is asking for trouble.
Note that instead of changing the working directory you could
also add the Mono bin dir to the search path:
lstrcpyA(new_path, old_path);
lstrcatA(new_path, ";");
lstrcatA(new_path, mono_path);
if (!SetEnvironmentVariableA("PATH", new_path))
return -1;
-Hans
More information about the wine-patches
mailing list