From f06eed98099e6d9ba32aeb6f247e85e0914113d6 Mon Sep 17 00:00:00 2001 From: Adam- Date: Sun, 11 Oct 2009 15:21:55 +0000 Subject: [PATCH] Fixed restarting Anope on Windows git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2551 5417fbe8-f217-4b02-8779-1006273d7864 --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 4ba42f621..69ea0b321 100644 --- a/src/main.c +++ b/src/main.c @@ -326,7 +326,7 @@ std::string GetFullProgDir(char *argv0) if (GetModuleFileName(NULL, buffer, PATH_MAX)) { std::string fullpath = buffer; - services_dir = fullpath.substr(orig_cwd.size() + 1); + services_bin = fullpath.substr(orig_cwd.size() + 1); std::string::size_type n = fullpath.rfind("\\" SERVICES_BIN); return std::string(fullpath, 0, n); }