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

AcquireSRWLockExclusive issue and static tls enhancement #25

Open
610100 opened this issue Nov 21, 2022 · 0 comments
Open

AcquireSRWLockExclusive issue and static tls enhancement #25

610100 opened this issue Nov 21, 2022 · 0 comments

Comments

@610100
Copy link

610100 commented Nov 21, 2022

Thanks for the tool, but its AcquireSRWLockExclusive implementation might be buggy.
When I was processing an exe, I encountered an exception in AcquireSRWLockExclusive. The implementation in YY-Thunks (https://github.com/Chuyu-Team/YY-Thunks) seems to be fine. I used yy-thunks to compile a dll similar to v2xker32.dll, and I encountered no problems when using it. Some functions seem to be missing in vista2xp. But it is available in yy-thunks. Hope vista2xp can be more perfect. Thus supporting more programs.

Additionally, it is desirable to enhance the handling of static TLS. Some dlls that use static tls are dynamically loaded under xp, and the tls data cannot be initialized normally (such as c2.dll of the vc2013 compiler). The way I currently think of is to modify the dll to export an empty function (in order not to affect the normal function), such as test, and then add the test everywhere in the dll to the import table in the exe, so that the dll using static tls can be used by the exe Load normally.

My English sucks so I used Google Translate. I'm a novice, so please forgive me for my mistakes.

Finally, thank you for developing such a great tool.

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

No branches or pull requests

1 participant