right protoype (ie is it a STDCALL or a CDECL function) ?
Moreover, a --debugmsg +ddraw trace would be helpful too with the backtrace
+ the actual code at Source/tDirectDrawScreen.cpp:852
Lionel
--
Lionel Ulmer - http://www.bbrox.org/