Help reverse engineering

Marcus Meissner marcus at jet.franken.de
Fri Nov 25 01:41:55 CST 2005


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



More information about the wine-devel mailing list