From 2de7bca13b84ab9a81a35c3caeebd8238a409891 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20H=C3=A4ggqvist?= Date: Wed, 22 Jun 2005 10:47:50 +0000 Subject: [PATCH] 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 --- tools/fwpatcher/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {