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

MS Ntdll in ReactOS: LookupPrivilegeValue() failed!

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      72653: Swapped our ntdll with MS original one.
      2nd stage is done properly until the last bit. In the Finish countdown if you hit the Finish button an error is thrown: LookupPrivilegeValue() failed!

      Tracing the error message it leads me to:
      https://git.reactos.org/?p=reactos.git;a=blob;f=reactos/dll/win32/syssetup/install.c;hb=39a4c78109f9354603545a5e09c2769987829f57#l1212

      So seems

      1208 LookupPrivilegeValue(NULL,
      1209                               SE_SHUTDOWN_NAME,
      1210                               &privs.Privileges[0].Luid))
      

      is failing.

      Implementation here:
      https://git.reactos.org/?p=reactos.git;a=blob;f=reactos/dll/win32/advapi32/sec/misc.c;hb=39a4c78109f9354603545a5e09c2769987829f57#l782

      After clicking on "Ok" of the FatalError window, a exception is launched:

      (C:\reactos\dll\win32\kernel32\client\actctx.c:181) HACK: Passed invalid ACTIVATION_CONTEXT_DATA!
      WARNING:  MmLockPageableDataSection at C:\reactos\ntoskrnl\mm\ARM3\drvmgmt.c:62 is UNIMPLEMENTED!
      WARNING:  MmUnlockPageableImageSection at C:\reactos\ntoskrnl\mm\ARM3\drvmgmt.c:39 is UNIMPLEMENTED!
      (C:\reactos\win32ss\user\ntuser\desktop.c:713) err: ptiLastInput is CLEARED!!
      Unhandled exception
      ExceptionCode:    c0000005
      Faulting Address: 7b1c9510
      CS:EIP 1b:7c9a1709
      DS 23 ES 23 FS 3b GS 0
      EAX: 7b1c9510   EBX: 00000000   ECX: 00260009
      EDX: 0026000a   EBP: 7c9b0e40   ESI: 00000000   ESP: 0012feb0
      EDI: 7c732230   EFLAGS: 00010202
      Address:
         7c910000+91709      C:\ReactOS\system32\ntdll.dll
      Frames:
                0+26000a     
      err:(C:\reactos\win32ss\user\user32\windows\window.c:470) CreateWindowExW RegisterSystemControls
      fixme:(C:\reactos\win32ss\user\user32\misc\dllmain.c:362) ClientThreadSetup is UNIMPLEMENTED!
      WARNING:  MmUnlockPageableImageSection at C:\reactos\ntoskrnl\mm\ARM3\drvmgmt.c:39 is UNIMPLEMENTED!
      (C:\reactos\win32ss\user\ntuser\desktop.c:713) err: ptiLastInput is CLEARED!!
      (C:\reactos\win32ss\gdi\ntgdi\gdiobj.c:1169) GreDeleteObject: Trying to delete invalid object 000500A1
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bug zilla Bug Zilla
                Reporter:
                vicmarcal vicmarcal
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: