From 424e2045aa0b07071780fa0a97c75962b779256e Mon Sep 17 00:00:00 2001 From: Steffen Prohaska Date: Sun, 25 Nov 2007 17:48:17 +0100 Subject: [PATCH] help (mingw): Avoid current working directory when displaying html help We should specify a working directory to ShellExecute for the following reason. ShellExecute uses the current working directory if not told otherwise. html.c did not override this default. Therefore the current working directory was in use as long as the browser displaying the HTML help was open. As long as a directory is in use, it can't be deleted. This commit changes help.c to avoid this problem. The HTML browser is launched in the root directory "\\". Signed-off-by: Steffen Prohaska --- help.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/help.c b/help.c index f89164a760..a9ec6a77e7 100644 --- a/help.c +++ b/help.c @@ -264,7 +264,7 @@ static void show_man_page(const char *git_cmd) } } printf("Launching default browser to display HTML help ...\n"); - ShellExecute(NULL, "open", htmlpath, NULL, NULL, 0); + ShellExecute(NULL, "open", htmlpath, NULL, "\\", 0); } #else const char *page;