Windows Port: Oops! Fix a bug that will cause the app to crash on app exit. (Regression from commit 5e67e9c.)

This commit is contained in:
rogerman 2018-08-10 18:53:00 -07:00
parent 5e67e9ca7c
commit 6797f00d23
1 changed files with 5 additions and 5 deletions

View File

@ -3557,6 +3557,11 @@ int _main()
gdbstub_mutex_destroy();
#endif
if (wifiHandler->IsSocketsSupported())
{
WSACleanup();
}
NDS_DeInit();
#ifdef DEBUG
@ -3591,11 +3596,6 @@ int _main()
UnregWndClass("DeSmuME");
if (wifiHandler->IsSocketsSupported())
{
WSACleanup();
}
return 0;
}