Commit 86d1bf8
committed
vfs/uwp: fix rename discarding new_path and inverted delete checks
retro_vfs_file_rename_impl passed old_path as both arguments of
uwp_move_path, and DeleteFileFromAppW's nonzero-on-success return was
checked inverted, so any rename whose source existed deleted it and
returned failure, while a missing source fell through to success.
Playlist writes on Xbox hit this through edb8fac's write-to-temporary
and reported success with nothing on disk.
Pass new_path through, fix both delete checks, fail on a missing
source, and treat a self-rename as a no-op success. Needs a UWP build
to verify; this TU is not compilable outside MSVC/WinRT.1 parent 892e42a commit 86d1bf8
1 file changed
Lines changed: 16 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
555 | 556 | | |
556 | 557 | | |
557 | 558 | | |
558 | | - | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
559 | 563 | | |
560 | 564 | | |
561 | 565 | | |
| |||
567 | 571 | | |
568 | 572 | | |
569 | 573 | | |
| 574 | + | |
| 575 | + | |
570 | 576 | | |
| 577 | + | |
| 578 | + | |
571 | 579 | | |
572 | 580 | | |
573 | 581 | | |
| |||
617 | 625 | | |
618 | 626 | | |
619 | 627 | | |
620 | | - | |
| 628 | + | |
| 629 | + | |
621 | 630 | | |
622 | 631 | | |
623 | 632 | | |
| |||
647 | 656 | | |
648 | 657 | | |
649 | 658 | | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
650 | 663 | | |
651 | | - | |
| 664 | + | |
652 | 665 | | |
653 | 666 | | |
654 | 667 | | |
| |||
0 commit comments