Get rid of "AutoInit", instead always keep the network initialized.

See #9305
This commit is contained in:
Henrik Rydgard committed 2017-02-14 13:12:02 +01:00
1 parent 6e940dfeda
commit cbf24a9d78
6 files changed
+3 -14

No files matched your search

+3 -1
View File
@@ -32,6 +32,7 @@
#include "profiler/profiler.h"
#include "thread/threadutil.h"
#include "util/text/utf8.h"
#include "net/resolve.h"
#include "Core/Config.h"
#include "Core/SaveState.h"
@@ -294,7 +295,7 @@ int WINAPI WinMain(HINSTANCE _hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLin
setCurrentThreadName("Main");
CoInitializeEx(NULL, COINIT_MULTITHREADED);
net::Init();
#ifdef _DEBUG
_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
#endif
@@ -528,6 +529,7 @@ int WINAPI WinMain(HINSTANCE _hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLin
W32Util::ExitAndRestart();
}
net::Shutdown();
CoUninitialize();
return 0;