https://bugs.winehq.org/show_bug.cgi?id=40935
--- Comment #2 from dfroze poida.catalin@gmail.com --- (In reply to Sebastian Lackner from comment #1)
The example is working fine here (compiled with i686-w64-mingw32-gcc). I tested with Wine 1.9.13, but I would expect the same result with 1.6. Wine also uses CreateProcess internally and such a critical error would render basically all applications useless.
Are you by any chance passing a Linux path to CreateProcess? This would explain the problem because it is not fully supported (yet). Otherwise, please provide more details how exactly to reproduce this issue, and which fields are not set as expected.
There is no problem with the path. For example I am testing it by running ls command in the example and in both cases (linux path and win path), i receive the output from ls