DbgShim!RegisterForRuntimeStartup: Avoid extra call to callback
authorGregg Miskelly <greggm@microsoft.com>
Sat, 27 Feb 2016 01:42:54 +0000 (17:42 -0800)
committerGregg Miskelly <greggm@microsoft.com>
Sat, 27 Feb 2016 02:02:34 +0000 (18:02 -0800)
commit5bcf0a6e6dc42b925fb798aa176c13be8f14d927
treec799b63ef11a86cbd2fb14f84b4472668ca99f04
parent97545d6f772546e4737c112007d687c6fbc640b4
DbgShim!RegisterForRuntimeStartup: Avoid extra call to callback

If the target process exits, and the debugger notifies dbgshim by
calling Unregister then dbgshim was calling back into the callback
to let it know that it couldn't enumerate modules.

With this fix, dbgshim no longer invokes the call back on errors
at the end if unregister has already been called.
src/dlls/dbgshim/dbgshim.cpp
src/pal/src/thread/process.cpp