From 5b36c7c6e08f38027ffa1a083c6e57f159a70490 Mon Sep 17 00:00:00 2001 From: billow Date: Tue, 16 Jan 2024 13:55:10 +0800 Subject: [PATCH] Patch for windows debugger to load libraries (#4113) --- librz/debug/p/debug_native.c | 2 +- librz/debug/p/native/windows/windows_debug.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/librz/debug/p/debug_native.c b/librz/debug/p/debug_native.c index 50073133784..3ebe03e133e 100644 --- a/librz/debug/p/debug_native.c +++ b/librz/debug/p/debug_native.c @@ -344,7 +344,7 @@ static RzDebugReasonType rz_debug_native_wait(RzDebug *dbg, int pid) { rz_bin_file_set_cur_binfile(core->bin, cur); } } else { - RZ_LOG_VERBOSE("The library %s does not exist.\n", lib->Path); + RZ_LOG_ERROR("The library %s does not exist.\n", lib->Path); } } } else { diff --git a/librz/debug/p/native/windows/windows_debug.c b/librz/debug/p/native/windows/windows_debug.c index f04dee032fa..d6a8b807d65 100644 --- a/librz/debug/p/native/windows/windows_debug.c +++ b/librz/debug/p/native/windows/windows_debug.c @@ -706,7 +706,7 @@ static char *get_file_name_from_handle(HANDLE handle_file) { CloseHandle(handle_file_map); } if (filename) { - char *ret = rz_sys_conv_win_to_utf8(filename); + char *ret = rz_utf16_to_utf8(filename); free(filename); return ret; }