[PATCH] jscript: Fix `this` within IDispatchEx::InvokeEx

Jacek Caban jacek at codeweavers.com
Thu Jul 23 05:57:36 CDT 2020

From: Puetz Kevin A <PuetzKevinA at JohnDeere.com>

Latent bug revealed by 614ea7e6243ead003bcfe4624895154972f3445f;
Now that cross-context calls go through disp_call* instead of 
jsdisp_call*, and thus through InvokeEx, the `this` pointer is
lost when calling methods inherited from a prototype.

Signed-off-by: Kevin Puetz <PuetzKevinA at JohnDeere.com>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
  dlls/jscript/dispex.c    |  8 ++--
  dlls/jscript/tests/run.c | 89 +++++++++++++++++++++++++++++++++++++++-
  2 files changed, 92 insertions(+), 5 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-jscript-Fix-this-within-IDispatchEx-InvokeEx.txt
Type: text/x-patch
Size: 5308 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20200723/5c61d5f0/attachment.bin>

More information about the wine-devel mailing list