vista2xp icon indicating copy to clipboard operation
vista2xp copied to clipboard

AcquireSRWLockExclusive issue and static tls enhancement

Open 610100 opened this issue 2 years ago • 0 comments

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.

610100 avatar Nov 21 '22 15:11 610100