From 7fe01ac2ce80c6c8f155b264c333a7c0df623189 Mon Sep 17 00:00:00 2001 From: yetmorecode Date: Thu, 13 Aug 2015 15:09:51 +0200 Subject: [PATCH] Improved error handling in w32 debugging --- libr/debug/p/native/w32.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libr/debug/p/native/w32.c b/libr/debug/p/native/w32.c index 61d857bca2..10568343b8 100644 --- a/libr/debug/p/native/w32.c +++ b/libr/debug/p/native/w32.c @@ -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); }