ntdll loader

Jon Griffiths jon_p_griffiths at yahoo.com
Fri Jan 30 00:59:22 CST 2004


Hi,

Often while I'm testing, unimplemented function calls lead to a call
through 
0xdeadbeef. However when a lot of imports are not provided, this
doesn't help 
in tracking down which particular function was called & needs to be 
stubbed/implemented.

The following patch sets the address for functions without
implementations to 
an increasing number each time (here starting from 0xdeadbeef, but
should 
probably start from 0xdead0000). This makes it trivial to match up
the 
address called and which missing export it belongs to.

This is esp. useful for the XP native dlls which link to a lot of
functions 
not implemented in Wine, but don't actually seem to call these
functions very 
often...

ChangeLog:

  Jon Griffiths <jon_p_griffiths at yahoo.com>

  +dlls/ntdll/loader.c
    Set each unavailable export to a unique address, so we know
    which one was called if an app crashes calling it.


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ntdll_loader.diff
Type: text/x-diff
Size: 2701 bytes
Desc: ntdll_loader.diff
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20040129/9ea73eac/ntdll_loader.bin


More information about the wine-patches mailing list