mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-25 07:46:01 +03:00
[PR #3246] [MERGED] Core: Fix read-only file unmaps on Windows #3332
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#3332
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/shadps4-emu/shadPS4/pull/3246
Author: @StevenMiller123
Created: 7/15/2025
Status: ✅ Merged
Merged: 7/15/2025
Merged by: @georgemoralis
Base:
main← Head:mem-fix📝 Commits (2)
63bbe08Fix read-only file unmaps6d8bdb8Slight cleanup📊 Changes
1 file changed (+3 additions, -3 deletions)
View changed files
📝
src/core/memory.cpp(+3 -3)📄 Description
By using the created
post_merge_vmato check protections,readonly_filewould always be false since the created VMA has protMemoryProt::NoAccess. In games that try unmapping a read-only file, this would cause a crash for Windows users since we don't have a proper file mapping at that address.Fixes Genshin Impact (CUSA23681) crashing on a memory error on boot. It doesn't get much further though, since it needs alertable event flag waits.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.