1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 00:03:12 +02:00

Fixed restarting Anope on Windows

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2551 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Adam-
2009-10-11 15:21:55 +00:00
parent 5bfc23a07e
commit f06eed9809
+1 -1
View File
@@ -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);
}