Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash on WinPE #163

Open
wants to merge 2 commits into
base: msys2-3.4.7
Choose a base branch
from
Open

Commits on Jul 13, 2023

  1. Detect RAM disks as a separate filesystem type

    Native RAM disks, e.g. as are used in WinPE environments, have other
    characteristics than regular filesystems such as NTFS. For instance,
    re-opening files with NtOpenFile is buggy.
    
    This commit checks whether a volume is a RAM disk through the NT object
    the drive letter link refers to. This seems to be the only reliable
    method of checking whether a volume is a native RAM disk.
    lesderid committed Jul 13, 2023
    Configuration menu
    Copy the full SHA
    2138029 View commit details
    Browse the repository at this point in the history
  2. Use init_reopen_attr in mmap

    Calling mmap on a file stored on a volume with buggy file re-opening
    currently bugchecks. This commit solves this by using the
    init_reopen_attr helper function.
    
    Fixes msys2#160
    lesderid committed Jul 13, 2023
    Configuration menu
    Copy the full SHA
    94f9378 View commit details
    Browse the repository at this point in the history