mirror of
https://github.com/anope/anope.git
synced 2026-06-12 15:44:46 +02:00
Fix the unique runtime library names on Windows.
This commit is contained in:
@@ -88,7 +88,7 @@ ModuleReturn ModuleManager::LoadModule(const Anope::string &modname, User *u)
|
||||
|
||||
#ifdef _WIN32
|
||||
/* Generate the filename for the temporary copy of the module */
|
||||
auto pbuf = Anope::ExpandData("runtime/" + modname + DLL_EXT ".XXXXXX");
|
||||
auto pbuf = Anope::ExpandData("runtime/" + modname + "." + Anope::ToString(Anope::CurTime) + DLL_EXT);
|
||||
if (!fs::copy_file(modpath.str(), pbuf.str(), fs::copy_options::overwrite_existing, ec) || ec)
|
||||
{
|
||||
Log(LOG_TERMINAL) << "Error while copying " << modname << " from " << modpath
|
||||
|
||||
Reference in New Issue
Block a user