From 22bceea46c49d74eb765f7b10c397b5658173c37 Mon Sep 17 00:00:00 2001 From: The Dax Date: Mon, 5 Aug 2013 22:49:04 -0400 Subject: [PATCH] Remove old comment, and change length value. --- Core/Dialog/PSPOskDialog.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Core/Dialog/PSPOskDialog.cpp b/Core/Dialog/PSPOskDialog.cpp index deda6cc990..b057ccc84a 100755 --- a/Core/Dialog/PSPOskDialog.cpp +++ b/Core/Dialog/PSPOskDialog.cpp @@ -742,7 +742,6 @@ void PSPOskDialog::RenderKeyboard() // TODO: Why does this have a 2 button press lag/delay when // re-opening the dialog box? I don't get it. -// TODO: Stop crashes when the user enters > 255 characters on _WIN32. // TODO: Use a wstring to allow Japanese/Russian/etc.. on _WIN32(others?) int PSPOskDialog::NativeKeyboard() { @@ -773,7 +772,7 @@ int PSPOskDialog::NativeKeyboard() sprintf(buf, "VALUE"); } - if(!InputBox_GetString(0, MainWindow::hwndMain, NULL, buf, input, FieldMaxLength() - 1)) { + if(!InputBox_GetString(0, MainWindow::hwndMain, NULL, buf, input, FieldMaxLength())) { sprintf(input, ""); } #endif