Skip to content

Commit

Permalink
Fix array count in IMEManager::Update_Candidate_List
Browse files Browse the repository at this point in the history
  • Loading branch information
xezon committed Sep 9, 2024
1 parent 0574116 commit 528677c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/client/gui/imemanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ void IMEManager::Update_Candidate_List(int candidate_flags)
DWORD size = ImmGetCandidateListCountW(m_context, &count);

if (size > 0 || (is_unicode = false, size = ImmGetCandidateListCountA(m_context, &count), size > 0)) {
CANDIDATELIST *list = new CANDIDATELIST[size];
CANDIDATELIST *list = new CANDIDATELIST[count];

if (list != nullptr) {
memset(list, 0, size);
Expand Down

0 comments on commit 528677c

Please sign in to comment.