mirror of https://github.com/x64dbg/GleeBug
fix INVALID_HANDLE_VALUE exception on attach
See: * https://github.com/x64dbg/x64dbg/issues/1777 * https://github.com/x64dbg/x64dbg/issues/1759
This commit is contained in:
parent
719f349b67
commit
4cb07be1f5
|
|
@ -18,7 +18,8 @@ namespace GleeBug
|
||||||
cbLoadDllEvent(loadDll, dll);
|
cbLoadDllEvent(loadDll, dll);
|
||||||
|
|
||||||
//close the file handle
|
//close the file handle
|
||||||
CloseHandle(loadDll.hFile);
|
if(loadDll.hFile)
|
||||||
|
CloseHandle(loadDll.hFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Debugger::unloadDllEvent(const UNLOAD_DLL_DEBUG_INFO & unloadDll)
|
void Debugger::unloadDllEvent(const UNLOAD_DLL_DEBUG_INFO & unloadDll)
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,8 @@ namespace GleeBug
|
||||||
cbCreateProcessEvent(createProcess, *mProcess);
|
cbCreateProcessEvent(createProcess, *mProcess);
|
||||||
|
|
||||||
//close the file handle
|
//close the file handle
|
||||||
CloseHandle(createProcess.hFile);
|
if(createProcess.hFile)
|
||||||
|
CloseHandle(createProcess.hFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Debugger::exitProcessEvent(const EXIT_PROCESS_DEBUG_INFO & exitProcess)
|
void Debugger::exitProcessEvent(const EXIT_PROCESS_DEBUG_INFO & exitProcess)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue