Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-871

Get/SetThreadContext doesn't work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • None
    • NTCore
    • None
    • Operating System: ReactOS
      Platform: x86 Hardware

    Description

      GetThreadContext and SetThreadContext don't work at all. They just cause a BSOD
      from KeTrapFrameToContext/KeContextToTrapFrame (apparently because the
      KeGetCurrentThread()->TrapFrame is a bad pointer)

      This bug may not appear to happen with GetThreadContext, because of another bug.
      NtGetContextThread doesn't actually put the context into the
      GET_SET_CTX_CONTEXT, so that part of it is just stack junk, which may not have
      any of the context flags set in the context parameter, so the trap frame never
      gets accessed.

      Attachments

        Activity

          People

            bug zilla Bug Zilla
            goplat Goplat
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: