From 78f6808ecec1df047405fba852dff9e729d255b8 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 4 Sep 2013 15:05:28 -0400 Subject: [PATCH] Remove a redundant wcsncat call. Just makes the else statement the dominant branch. --- Core/Dialog/PSPOskDialog.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Core/Dialog/PSPOskDialog.cpp b/Core/Dialog/PSPOskDialog.cpp index 7c0e045245..e8b7a32fb7 100755 --- a/Core/Dialog/PSPOskDialog.cpp +++ b/Core/Dialog/PSPOskDialog.cpp @@ -788,11 +788,7 @@ int PSPOskDialog::NativeKeyboard() std::wstring inputWide; - if(!host->InputBoxGetWString(titleText.c_str(), defaultText, inputWide)) - { - wcsncat(input, L"", wcslen(L"")); - } - else + if(host->InputBoxGetWString(titleText.c_str(), defaultText, inputWide)) { size_t maxInputLength = FieldMaxLength();