From 5cf28ecbc9f72793bdf5f4d3e87b634a6109e9a5 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 01:56:55 +0000 Subject: [PATCH] Decompile fn_17765 (CLanguageBase::CopySelection) Batch #12853 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_17765 CLanguageBase::CopySelection: logic confirmed by peer review Peer-reviewed-by: Yommy, aDw, codeplay Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Client/Input/Language.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Client/Input/Language.cpp b/Source/Client/Input/Language.cpp index e913edffe..70632fb5f 100644 --- a/Source/Client/Input/Language.cpp +++ b/Source/Client/Input/Language.cpp @@ -140,10 +140,10 @@ void CLanguageBase::CopySelection() { end = this->anchor; } - if (this->password) { - std::memset(data, '*', static_cast(this->text.size()) - static_cast(begin)); - } else { + if (!this->password) { std::memcpy(data, this->text.c_str() + begin, end - begin); + } else { + std::memset(data, '*', static_cast(this->text.size()) - static_cast(begin)); } data[std::abs(this->cursor - this->anchor)] = 0;