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

FileUtil: Only attempt to write to the destination in Copy if there is actually content to write #10810

Merged
merged 1 commit into from Jul 5, 2022

Conversation

OatmealDome
Copy link
Member

File::Copy() fails with empty files because << sets failbit on the destination stream if nothing was written. The macOS updater uses File::Copy() in a workaround for an OS quirk. A recent PR added empty files to the Sys folder, breaking the macOS updater.

Fixes https://bugs.dolphin-emu.org/issues/12968.

@JMC47 JMC47 merged commit 3cd82b6 into dolphin-emu:master Jul 5, 2022
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants