Signed-off-by: Brendan Shanks bshanks@codeweavers.com --- programs/winedbg/tgt_active.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/programs/winedbg/tgt_active.c b/programs/winedbg/tgt_active.c index 2caa62206d6..628627fabc5 100644 --- a/programs/winedbg/tgt_active.c +++ b/programs/winedbg/tgt_active.c @@ -257,12 +257,9 @@ static DWORD dbg_handle_exception(const EXCEPTION_RECORD* rec, BOOL first_chance dbg_printf("Thread ID=%04lx not in our list of threads -> can't rename\n", pThreadName->dwThreadID); return DBG_CONTINUE; } - if (dbg_read_memory(pThreadName->szName, pThread->name, sizeof(pThread->name))) - { - pThread->name[sizeof(pThread->name) - 1] = '\0'; + if (memory_get_string(dbg_curr_process, pThreadName->szName, TRUE, FALSE, pThread->name, sizeof(pThread->name))) dbg_printf("Thread ID=%04lx renamed using MSVC extension (name=="%s")\n", pThread->tid, pThread->name); - } return DBG_CONTINUE; case EXCEPTION_INVALID_HANDLE: return DBG_CONTINUE;