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

PATCH: Wrong baseaddress to LZ32.DLL

    XMLWordPrintable

Details

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

    Description

      Created an attachment (id=7018)
      Fix for this bug

      I tried to launch VisualStudio 6.0 on ReactOS and it did not work.
      When launching the executable, the debug log said:

      MainFrameBase::OpenShellFolders(): parent_pidl=D:\DevStudio\SharedIDE\bin
      WARNING: RtlSetUnhandledExceptionFilter at lib/rtl/exception.c:186 is UNIMPLEMENTED!
      (dll/ntdll/ldr/ldrutils.c:1138) LDR: LdrpMapDll Relocating Image Name lz32.dll (73D80000 -> 0043A000)
      (dll/ntdll/ldr/ldrutils.c:1177) Overlapping DLL: D:\DevStudio\SharedIDE\bin\MFC42.DLL
      (ntoskrnl/ps/query.c:1268) Unsupported or unimplemented: 22
      (dll/ntdll/ldr/ldrinit.c:2139) LDR: Process initialization failure for D:\DevStudio\SharedIDE\bin\MSDEV.EXE; NTSTATUS = c0000005
      (ntoskrnl/ke/i386/exp.c:1089) Kill MSDEV.EXE, ExceptionCode: c0000005, ExceptionAddress: 7c9063f1, BaseAddress: 400000

      The base address assigned to LZ32.DLL seems wrong, 0x73D80000 instead of 0x73D30000, perhaps a copy paste error with BASEADDRESS_COREDLL.
      This address conflicts with MFC42.DLL, which is located at 0x73D40000.
      Although the rebasing had to fix it, correct value must be fixed: actually ALL applications that rely on MFC42.DLL seem to be broken because of this, not only MSVC6.

      After restoring correct value, MSVC6 started.
      There are lot of errors and graphical defects, but at least it starts.

      Attached patch fixes this problem.

      Attachments

        1. lz32.txt
          1 kB
        2. lz32.txt
          0.7 kB

        Issue Links

          Activity

            People

              bug zilla Bug Zilla
              Carlo Bramix Carlo Bramix
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: