XGameUI: maxTextLength=0 is the GDK's 1024 default #323
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!323
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/323/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@JordanFableFur on GitHub · 2026-11-24 23:34 UTC · original
JordanFableFur:fix/xgameui-text-limit-default→main· +26 −5 · 1 files · 1 commits · closed without mergingWhat
The GDK defines a zero
maxTextLengthas a limit of 1024 characters, not no limit. The text-entry dialog passed the zero straight through: the edit control'sEM_LIMITTEXTwith 0 disables the limit, and the result trimming kept everything, so a 1025-character input came back whole.The limit is now normalized at the entry (
text_limit), and both the dialog's edit control and the result trimming use the effective value.Fixes #248.
Testing
The existing test opens the entry through the vtable; a new case calls it with
maxTextLength=0and a 1030-character default, then reads the result: 1024 characters come back. An explicit positive limit still cuts (kept the oldlimitassertion, plus one throughtext_limit(0)).-D warningsfor the Windows target (clean);victory-hleis Windows-only at run time, so the test run itself needs CI.AI use: written with Codex and Claude Code (GPT-5.2 Codex); reviewed and posted with my approval. No game files were used.
@chatgpt-codex-connector[bot] on GitHub · 2026-11-24 23:34 UTC · original · edited 2026-11-24 23:36 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
e289bb9ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
@kaayzouee on GitHub · 2026-11-25 01:13 UTC · original
Duplicate of #291?
@JordanFableFur on GitHub · 2026-11-25 01:46 UTC · original
Closing — #291 fixes the same issue (#248) and was opened first. Answered the duplicate question rather than leaving it hanging; thanks for the sweep.
Pull request closed