mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-26 04:32:35 +01:00
CopyFile improved
This commit is contained in:
parent
7e8e288ba2
commit
39524318aa
@ -163,7 +163,7 @@ int OSCopyFile(const char* source, const char* destination, bool overwrite)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
if ((output = open(destination, O_RDWR | O_CREAT | (overwrite ? 0 : O_EXCL), 0666)) == -1)
|
||||
if ((output = open(destination, O_WRONLY | O_CREAT | (overwrite ? O_TRUNC : O_EXCL), 0666)) == -1)
|
||||
{
|
||||
close(input);
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user