From 56077e87789f31c5a6fd228426b7f12c416bf3b3 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Fri, 1 Feb 2013 19:31:18 +0100 Subject: [PATCH] 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. --- winboard/winboard.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 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); } -- 1.7.0.4