diff --git a/Windows/Debugger/CtrlDisAsmView.cpp b/Windows/Debugger/CtrlDisAsmView.cpp index ebbbf85354..afb032d755 100644 --- a/Windows/Debugger/CtrlDisAsmView.cpp +++ b/Windows/Debugger/CtrlDisAsmView.cpp @@ -1188,7 +1188,7 @@ void CtrlDisAsmView::search(bool continueSearch) if (continueSearch == false || searchQuery[0] == 0) { - if (InputBox_GetString(MainWindow::GetHInstance(),MainWindow::GetHWND(),L"Search for:","",searchQuery) == false + if (InputBox_GetString(MainWindow::GetHInstance(), MainWindow::GetHWND(), L"Search for:", searchQuery, searchQuery) == false || searchQuery[0] == 0) { SetFocus(wnd); diff --git a/Windows/Debugger/CtrlMemView.cpp b/Windows/Debugger/CtrlMemView.cpp index 8de34a1c81..1d57442c8f 100644 --- a/Windows/Debugger/CtrlMemView.cpp +++ b/Windows/Debugger/CtrlMemView.cpp @@ -745,7 +745,7 @@ void CtrlMemView::search(bool continueSearch) u8* dataPointer = 0; if (continueSearch == false || searchQuery.empty()) { - if (InputBox_GetString(GetModuleHandle(NULL),wnd,L"Search for", "",searchQuery) == false) + if (InputBox_GetString(GetModuleHandle(NULL), wnd, L"Search for", searchQuery, searchQuery) == false) { SetFocus(wnd); return;