Improved error handling in w32 debugging

This commit is contained in:
yetmorecode 2015-08-13 15:09:51 +02:00 committed by pancake
parent 3c6c74555d
commit 7fe01ac2ce

View file

@ -666,7 +666,9 @@ void w32_break_process (void *d) {
"DebugBreakProcess");
}
if (process != INVALID_HANDLE_VALUE && w32_dbgbreak != NULL) {
w32_dbgbreak (process);
if (!w32_dbgbreak (process)) {
print_lasterr ((char *)__FUNCTION__, "DebugBreakProcess");
}
}
CloseHandle (lib);
}