Hi all,

I'm new to the list and somewhat new to wine, so I apologize in advance
if this is too easy, offtopic, or whatever.  Despite much searching,
I have not been able to find any information relevant to my problem.

I'm trying to build a shared library that loads a native Win32 DLL 
using libwine.  I've built code that does the necessary calls to 
LoadLibrary and such, but I always get a segfault whenever wine 
accesses NtCurrentTeb().  The teb looks like a valid address but 
none of the fields in the structure make any sense, so I'm wondering 
if I'm missing some initialization step.  I've tried calling both 
MAIN_WineInit and PROCESS_Init within my .so but these don't change
anything.  I'm using the May 26 source release.

Has anyone done this before?  Is there any documentation on libwine 
somewhere that might cover this? 

TIA,
-Bob

Reply via email to