From: H.G. Muller Date: Fri, 1 Feb 2013 18:31:18 +0000 (+0100) Subject: Let WinBoard start in its installation folder X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=56077e87789f31c5a6fd228426b7f12c416bf3b3;p=xboard.git Let WinBoard start in its installation folder The current directory in WinBoard was not automatically the same as the installDir returned by SearchPath. Especially not if used without shortcut by file association. --- diff --git a/winboard/winboard.c b/winboard/winboard.c index 1b6297e..1359d20 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -1063,6 +1063,7 @@ InitInstance(HINSTANCE hInstance, int nCmdShow, LPSTR lpCmdLine) if (SearchPath(NULL, "WinBoard.exe", NULL, MSG_SIZ, installDir, &filepart)) { *filepart = NULLCHAR; + SetCurrentDirectory(installDir); } else { GetCurrentDirectory(MSG_SIZ, installDir); }