[PATCH 2/2] wdscore: Add CurrentIP stub.

Zebediah Figura (she/her) zfigura at codeweavers.com
Tue Dec 28 10:43:50 CST 2021


On 12/27/21 23:50, Mohamad Al-Jaf wrote:
> I see, but I still don't understand the method used here. How can you see
> the stack entries if you don't disassemble the file? The only way I know of
> is through WineDbg and that does not seem to be correct. The method on that
> wiki page appears to require looking at the assembly code. Specifically, it
> says "ret hhll (where hhll is the number of bytes to remove, i.e. the
> number of arguments times 4)". As far as I know, ret is assembly code. So
> the method listed requires disassembly, no?

The page is confusingly written, and I'm not sure whether it's telling 
the user to disassemble the function or its caller. Doing the latter is 
usually okay, provided you don't have some other reason to avoid it 
(e.g. it's also a Microsoft DLL).

Anyway, what I was proposing is something like the attached patch. 
Running it on the testbot yields an argument count of zero for 
CurrentIP() [1].

[1] https://testbot.winehq.org/JobDetails.pl?Key=104544
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scratch.diff
Type: text/x-patch
Size: 1405 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20211228/3d7ac0c8/attachment.bin>


More information about the wine-devel mailing list