From 675ed82c0bf798d21311bb940140af1b101841f2 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Sat, 20 Jan 2024 17:44:00 +0100 Subject: [PATCH] cellImeJp: fix deadlock --- rpcs3/Emu/Cell/Modules/cellImeJp.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/Cell/Modules/cellImeJp.cpp b/rpcs3/Emu/Cell/Modules/cellImeJp.cpp index f0bf2636f5..836dd081e3 100644 --- a/rpcs3/Emu/Cell/Modules/cellImeJp.cpp +++ b/rpcs3/Emu/Cell/Modules/cellImeJp.cpp @@ -758,8 +758,10 @@ static error_code cellImeJpConvertCancel(CellImeJpHandle hImeJpHandle) return CELL_IMEJP_ERROR_ERR; } - // TODO: only cancel all if cursor is at 0 - return cellImeJpAllConvertCancel(hImeJpHandle); + manager.converted_string.clear(); + manager.input_state = CELL_IMEJP_BEFORE_CONVERT; + + return CELL_OK; } static error_code cellImeJpExtendConvertArea(CellImeJpHandle hImeJpHandle)