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:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user