Skip to content

Commit 580a56f

Browse files
committed
[MERGE #5321 @msdimitrov] Remove NvContext pointers in StackTrace64
Merge pull request #5321 from msdimitrov:rtl-virtual-unwind Resolves #5314
2 parents aee5f51 + c0fa747 commit 580a56f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/Common/Core/FaultInjection.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ namespace Js
117117
_In_opt_ const CONTEXT* pCtx = nullptr)
118118
{
119119
CONTEXT Context;
120-
KNONVOLATILE_CONTEXT_POINTERS NvContext;
121120
UNWIND_HISTORY_TABLE UnwindHistoryTable;
122121
PRUNTIME_FUNCTION RuntimeFunction;
123122
PVOID HandlerData;
@@ -141,7 +140,7 @@ namespace Js
141140
while (true)
142141
{
143142
RuntimeFunction = RtlLookupFunctionEntry(Context.Rip, &ImageBase, &UnwindHistoryTable);
144-
RtlZeroMemory(&NvContext, sizeof(KNONVOLATILE_CONTEXT_POINTERS));
143+
145144
if (!RuntimeFunction)
146145
{
147146
Context.Rip = (ULONG64)(*(PULONG64)Context.Rsp);
@@ -150,7 +149,7 @@ namespace Js
150149
else
151150
{
152151
RtlVirtualUnwind(UNW_FLAG_NHANDLER, ImageBase, Context.Rip, RuntimeFunction,
153-
&Context, &HandlerData, &EstablisherFrame, NULL);
152+
&Context, &HandlerData, &EstablisherFrame, NULL /* ContextPointers */);
154153
}
155154

156155
if (!Context.Rip)

0 commit comments

Comments
 (0)