Przeglądaj źródła

Remove NvContext pointers in StackTrace64

Milen Dimitrov 7 lat temu
rodzic
commit
c0fa74747b
1 zmienionych plików z 2 dodań i 3 usunięć
  1. 2 3
      lib/Common/Core/FaultInjection.cpp

+ 2 - 3
lib/Common/Core/FaultInjection.cpp

@@ -117,7 +117,6 @@ namespace Js
         _In_opt_ const CONTEXT* pCtx = nullptr)
     {
         CONTEXT                         Context;
-        KNONVOLATILE_CONTEXT_POINTERS   NvContext;
         UNWIND_HISTORY_TABLE            UnwindHistoryTable;
         PRUNTIME_FUNCTION               RuntimeFunction;
         PVOID                           HandlerData;
@@ -141,7 +140,7 @@ namespace Js
         while (true)
         {
             RuntimeFunction = RtlLookupFunctionEntry(Context.Rip, &ImageBase, &UnwindHistoryTable);
-            RtlZeroMemory(&NvContext, sizeof(KNONVOLATILE_CONTEXT_POINTERS));
+
             if (!RuntimeFunction)
             {
                 Context.Rip = (ULONG64)(*(PULONG64)Context.Rsp);
@@ -150,7 +149,7 @@ namespace Js
             else
             {
                 RtlVirtualUnwind(UNW_FLAG_NHANDLER, ImageBase, Context.Rip, RuntimeFunction,
-                    &Context, &HandlerData, &EstablisherFrame, NULL);
+                    &Context, &HandlerData, &EstablisherFrame, NULL /* ContextPointers */);
             }
 
             if (!Context.Rip)