summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/inspircd.cpp1
-rw-r--r--win/inspircd_win32wrapper.cpp7
-rw-r--r--win/inspircd_win32wrapper.h2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index a7a2b1bb6..6d0661fda 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -389,6 +389,7 @@ InspIRCd::InspIRCd(int argc, char** argv)
WSADATA wsadata;
WSAStartup(MAKEWORD(2,0), &wsadata);
+ ChangeWindowsSpecificPointers(this);
#endif
if (!ServerConfig::FileExists(this->ConfigFileName))
{
diff --git a/win/inspircd_win32wrapper.cpp b/win/inspircd_win32wrapper.cpp
index cc56af69d..1646e39af 100644
--- a/win/inspircd_win32wrapper.cpp
+++ b/win/inspircd_win32wrapper.cpp
@@ -516,19 +516,16 @@ void ClearConsole()
}
/* Many inspircd classes contain function pointers/functors which can be changed to point at platform specific implementations
- * of code. This function, called from WindowsForkStart, repoints these pointers and functors so that calls are windows
- * specific.
+ * of code. This function repoints these pointers and functors so that calls are windows specific.
*/
void ChangeWindowsSpecificPointers(InspIRCd* Instance)
{
+ Instance->Log(DEBUG,"Changing to windows specific pointer and functor set");
Instance->Config->DNSServerValidator = &ValidateWindowsDnsServer;
}
DWORD WindowsForkStart(InspIRCd* Instance)
{
- /* See the function declaration above */
- ChangeWindowsSpecificPointers(Instance);
-
/* Windows implementation of fork() :P */
if (owner_processid)
return 0;
diff --git a/win/inspircd_win32wrapper.h b/win/inspircd_win32wrapper.h
index 0fd43fab8..ffda9ff40 100644
--- a/win/inspircd_win32wrapper.h
+++ b/win/inspircd_win32wrapper.h
@@ -202,6 +202,8 @@ DWORD WindowsForkStart(InspIRCd* Instance);
void WindowsForkKillOwner(InspIRCd* Instance);
+void ChangeWindowsSpecificPointers(InspIRCd* Instance);
+
bool ValidateWindowsDnsServer(ServerConfig* conf, const char* tag, const char* value, ValueItem &data);
#endif