fix(WeaselTSF): dump caused by menu of languagebar set nullptr unexpectedly#1761
Closed
fxliang wants to merge 1 commit intorime:masterfrom
Closed
fix(WeaselTSF): dump caused by menu of languagebar set nullptr unexpectedly#1761fxliang wants to merge 1 commit intorime:masterfrom
fxliang wants to merge 1 commit intorime:masterfrom
Conversation
lotem
reviewed
Dec 25, 2025
| pt.x, pt.y, hwnd, NULL); | ||
| _pTextService->_HandleLangBarMenuSelect(wID); | ||
| } | ||
| if (menu) |
|
更新: 原因是 _GetFocusedContextWindow返回的句柄不符合要求(WHY), 但windbg查看是一个有效的句柄. 但sandbox里测试没有这个问题. 可能是其他什么软件或修改了Windows任务栏什么设置导致获取到的 句柄有差异 ? 使用自创建一临时窗口作为TrackPopupMenuEx的父窗口, 可以解决我电脑上的explorer崩溃问题. 内容如下, 仅供参考 不过以上修改虽然没有崩溃了, 但目前有一个小问题就是在开始菜单弹出(按win)的时候, rime右键会创建菜单失败(没有菜单弹出但,也无崩溃). 对我只要不崩溃就行了(通知区域很容易右键误触) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixed: #1760