Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix loading issue in SearchHost.exe and providing display attribute #221

Merged
merged 4 commits into from
Dec 19, 2024

Conversation

kanru
Copy link
Member

@kanru kanru commented Dec 19, 2024

#213 #219

DllMain 中的初始化程式碼可能導致死鎖。修正並重構程式碼以移除所有靜態模組參考。

由於 SearchHost.exe 在不同的安全性環境下執行並覆寫 DLL 搜尋順序(這會導致 chewing-msvc.dll 載入失敗),因此改為靜態連結 libchewing。

#217

微軟文件裡面寫的 DisplayAttribute 提供方式跟實際上實做不太一樣,會直接使用 Text Service 取得 ITfDisplayAttributeProvider
重構之後可以正確提供 DisplayAttribute,應該就不會變成黑色了。

Init code in DllMain might cause dead lock. Fix and refactor the
code to remove all static module reference.

Static link libchewing because SearchHost.exe runs in different
security context and overrides DLL search order, which breaks loading
chewing-msvc.dll.
@kanru kanru merged commit 1dea8f2 into master Dec 19, 2024
1 check passed
@kanru kanru added this to the v24.10.1 milestone Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant