summaryrefslogtreecommitdiffstats
path: root/tools/fwpatcher
diff options
context:
space:
mode:
authorJonas Häggqvist <rasher@rasher.dk>2005-06-22 10:47:50 +0000
committerJonas Häggqvist <rasher@rasher.dk>2005-06-22 10:47:50 +0000
commit2de7bca13b84ab9a81a35c3caeebd8238a409891 (patch)
tree9cfb5afa7dd30f1b47a769280674e45ecea0f6e4 /tools/fwpatcher
parent292b77b0974b228d1b66f70445808ffec57cc5c9 (diff)
downloadrockbox-2de7bca13b84ab9a81a35c3caeebd8238a409891.tar.gz
rockbox-2de7bca13b84ab9a81a35c3caeebd8238a409891.tar.bz2
rockbox-2de7bca13b84ab9a81a35c3caeebd8238a409891.zip
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
Diffstat (limited to 'tools/fwpatcher')
-rw-r--r--tools/fwpatcher/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/fwpatcher/main.c b/tools/fwpatcher/main.c
index ca11fbaefd..0d0cc1956f 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 {