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
This commit is contained in:
Jonas Häggqvist 2005-06-22 10:47:50 +00:00
parent 292b77b097
commit 2de7bca13b

View file

@ -235,7 +235,7 @@ int PatchFirmware()
DeleteFile(name1); DeleteFile(name1);
DeleteFile(name2); DeleteFile(name2);
/* all is fine, rename the patched file to original name of the firmware */ /* 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; return 1;
} }
else { else {