Prevent file browser WinBoard changing current directory
authorH.G.Muller <hgm@hgm-xboard.(none)>
Mon, 8 Aug 2022 09:48:51 +0000 (11:48 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Mon, 8 Aug 2022 09:48:51 +0000 (11:48 +0200)
commit84942facb794c11c0717c879765e8507a2897f1e
treea60511fb0496b713907ccb3c5300f153afa7850f
parent6ee406c3d30b8b374d7f40508b5ffa355647323d
Prevent file browser WinBoard changing current directory

Much of WinBoard relies on the current directory being the folder
that contains the winboard.exe executable. Using the Windows file-
browse dialog appeared to change that, however. Now the directory
before the browsing started is remembered, and restored afterwards.
winboard/winboard.c
winboard/wsettings.c