MCPcopy Create free account
hub / github.com/cinit/WSAPatch / OnUnload

Function OnUnload

WsaPatch.cpp:236–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236void OnUnload() {
237 HANDLE handle = gConsoleOutput;
238 if (handle != nullptr && handle != INVALID_HANDLE_VALUE) {
239 CloseHandle(handle);
240 if (gConsoleIsAllocated) {
241 FreeConsole();
242 gConsoleIsAllocated = false;
243 }
244 gConsoleOutput = INVALID_HANDLE_VALUE;
245 }
246 gSelfInstance = nullptr;
247}
248
249}
250

Callers 1

DllMainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected