Uploaded image for project: 'ReactOS Test Suite'
  1. ReactOS Test Suite
  2. ROSTESTS-132

Fix a failed test from ntdll:NtSystemInformation in Windows 2003

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Fix Version/s: None
    • Component/s: ReactOS Tests
    • Labels:

      Description

      The following test was failing in Windows Server 2003:

      /* Test without privilege */
      NtSetSystemInformation(SystemTimeAdjustmentInformation, &SetTimeInfo, sizeof(SetTimeInfo));
      ok_ntstatus(Status, STATUS_PRIVILEGE_NOT_HELD);

      The reason is that when the call to the NT function is performed, the process token has the SE_PRIVILEGE_ENABLED already set thanks to the GetPrivilege() previous call.

      The Patch attached:

      • Implements ResetPrivilege() which resets the SE_PRIVILEGE_ENABLED before performing the call.
      • Fixes a token handle leak.

        Attachments

          Activity

            People

            • Assignee:
              ThFabba ThFabba
              Reporter:
              vicmarcal vicmarcal
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: