lucasart / c-chess-cli

Command Line Interface for UCI Chess engines written in C
GNU General Public License v3.0
70 stars 9 forks source link

Windows: CreateProcessA() doesn't use lpCurrentDirectory to understand lpCommandLine #53

Closed lucasart closed 3 years ago

lucasart commented 3 years ago

Possible fixes:

lucasart commented 3 years ago

Actually, the chdir() solution is best, as it also avoids this problem: https://github.com/nkg114mc/c-gomoku-cli/commit/f14def755f997911b0f7325da3d9a2c7a775bf60.

lucasart commented 3 years ago

chdir() will be done in the context of the parent unlike on POSIX. So this must be locked as in #52.