diff options
| author | Jonas Häggqvist <rasher@rasher.dk> | 2005-06-22 10:47:50 +0000 |
|---|---|---|
| committer | Jonas Häggqvist <rasher@rasher.dk> | 2005-06-22 10:47:50 +0000 |
| commit | 2de7bca13b84ab9a81a35c3caeebd8238a409891 (patch) | |
| tree | 9cfb5afa7dd30f1b47a769280674e45ecea0f6e4 | |
| parent | 292b77b0974b228d1b66f70445808ffec57cc5c9 (diff) | |
| download | rockbox-2de7bca13b84ab9a81a35c3caeebd8238a409891.zip rockbox-2de7bca13b84ab9a81a35c3caeebd8238a409891.tar.gz rockbox-2de7bca13b84ab9a81a35c3caeebd8238a409891.tar.bz2 rockbox-2de7bca13b84ab9a81a35c3caeebd8238a409891.tar.xz | |
Should work on Windows 95/98/ME as well now
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6800 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | tools/fwpatcher/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/fwpatcher/main.c b/tools/fwpatcher/main.c index ca11fba..0d0cc19 100644 --- a/tools/fwpatcher/main.c +++ b/tools/fwpatcher/main.c @@ -235,7 +235,7 @@ int PatchFirmware() DeleteFile(name1); DeleteFile(name2); /* all is fine, rename the patched file to original name of the firmware */ - if (MoveFileEx(name3, fn, MOVEFILE_COPY_ALLOWED | MOVEFILE_REPLACE_EXISTING)) { + if (DeleteFile(fn) && MoveFile(name3, fn)) { return 1; } else { |