Skip to content
Permalink
Browse files

Windows Port: Oops! Fix a bug that will cause the app to crash on app…

… exit. (Regression from commit 5e67e9c.)
  • Loading branch information...
rogerman committed Aug 11, 2018
1 parent 5e67e9c commit 6797f00d239225be26aa601ed688c48c10381a47
Showing with 5 additions and 5 deletions.
  1. +5 −5 desmume/src/frontend/windows/main.cpp
@@ -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;
}

0 comments on commit 6797f00

Please sign in to comment.
You can’t perform that action at this time.