Hi folks, I'm trying to figure out what I_CryptCreateLruCache and friends do by calling them on Windows. The trouble is, I keep getting a runtime warning that %esp is not saved across a call to I_CryptFlushLruCache. I've tried the obvious thing (trying both __stdcall and __cdecl calling conventions,) but still get the same.
I suspect our stubs aren't in order, because I get a crash (call to a NULL function pointer) immediately after a call to I_CryptFlushLruCache when I try to register (native) cryptnet.dll under Wine.
Any ideas? Thanks, --Juan
__________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com
On Thu, Nov 24, 2005 at 01:14:41PM -0800, Juan Lang wrote:
Hi folks, I'm trying to figure out what I_CryptCreateLruCache and friends do by calling them on Windows. The trouble is, I keep getting a runtime warning that %esp is not saved across a call to I_CryptFlushLruCache. I've tried the obvious thing (trying both __stdcall and __cdecl calling conventions,) but still get the same.
I suspect our stubs aren't in order, because I get a crash (call to a NULL function pointer) immediately after a call to I_CryptFlushLruCache when I try to register (native) cryptnet.dll under Wine.
I_CryptCreateLruCache is a 2 argument stdcall function. wine is correct there.
I_CryptFindLruEntryData,I_CryptFlushLruCache,I_CryptFreeLruCache are stdcall with 3 arguments. Wine has them with 1 argument, so you have to change that.
Ciao, Marcus
--- Marcus Meissner marcus@jet.franken.de wrote:
I_CryptFindLruEntryData,I_CryptFlushLruCache,I_CryptFreeLruCache are stdcall with 3 arguments. Wine has them with 1 argument, so you have to change that.
Wow--well done, Marcus, thanks. --Juan
__________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com