diff options
author | Dominik Wenger <domonoky@googlemail.com> | 2007-03-15 18:02:15 +0000 |
---|---|---|
committer | Dominik Wenger <domonoky@googlemail.com> | 2007-03-15 18:02:15 +0000 |
commit | c9cafd846fbc43fba9eb559cb86160a94f7f97a1 (patch) | |
tree | 80ca1998e0eee7176f7115026d29852bdd67a335 /rbutil/irivertools.cpp | |
parent | 410af8955f89ee5ff9498448bcc185988869bdb3 (diff) | |
download | rockbox-c9cafd846fbc43fba9eb559cb86160a94f7f97a1.tar.gz rockbox-c9cafd846fbc43fba9eb559cb86160a94f7f97a1.zip |
more Unicode fixes for rutil, thanx to preglow. Also made Theme Preview window modeless
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12785 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/irivertools.cpp')
-rwxr-xr-x | rbutil/irivertools.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/rbutil/irivertools.cpp b/rbutil/irivertools.cpp index a1c83ebd39..f993ce5e0a 100755 --- a/rbutil/irivertools.cpp +++ b/rbutil/irivertools.cpp | |||
@@ -170,11 +170,11 @@ bool mkboot(wxString infile, wxString outfile,wxString bootloader,int origin) | |||
170 | /* end mkboot.c excerpt */ | 170 | /* end mkboot.c excerpt */ |
171 | 171 | ||
172 | 172 | ||
173 | int intable(wxString md5, struct sumpairs *table, int len) | 173 | int intable(char *md5, struct sumpairs *table, int len) |
174 | { | 174 | { |
175 | int i; | 175 | int i; |
176 | for (i = 0; i < len; i++) { | 176 | for (i = 0; i < len; i++) { |
177 | if (md5.Cmp(table[i].unpatched) == 0) { | 177 | if (strncmp(md5, table[i].unpatched, 32) == 0) { |
178 | return i; | 178 | return i; |
179 | } | 179 | } |
180 | } | 180 | } |
@@ -544,7 +544,7 @@ bool PatchFirmware(wxString firmware,wxString bootloader,int series, int table_e | |||
544 | { | 544 | { |
545 | wxString name1, name2, name3; | 545 | wxString name1, name2, name3; |
546 | 546 | ||
547 | wxString md5sum_str; | 547 | char md5sum_str[32]; |
548 | int i; | 548 | int i; |
549 | struct sumpairs *sums; | 549 | struct sumpairs *sums; |
550 | int origin; | 550 | int origin; |
@@ -595,14 +595,14 @@ bool PatchFirmware(wxString firmware,wxString bootloader,int series, int table_e | |||
595 | return false; | 595 | return false; |
596 | } | 596 | } |
597 | /* now md5sum it */ | 597 | /* now md5sum it */ |
598 | if (!FileMD5(name3, &md5sum_str)) { | 598 | if (!FileMD5(name3, md5sum_str)) { |
599 | ERR_DIALOG(wxT("Error in checksumming"),wxT("Checksumming Firmware")); | 599 | ERR_DIALOG(wxT("Error in checksumming"),wxT("Checksumming Firmware")); |
600 | wxRemoveFile(name1); | 600 | wxRemoveFile(name1); |
601 | wxRemoveFile(name2); | 601 | wxRemoveFile(name2); |
602 | wxRemoveFile(name3); | 602 | wxRemoveFile(name3); |
603 | return false; | 603 | return false; |
604 | } | 604 | } |
605 | if (strncmp(sums[table_entry].patched, md5sum_str.c_str(), 32) == 0) { | 605 | if (strncmp(sums[table_entry].patched, md5sum_str, 32) == 0) { |
606 | /* delete temp files */ | 606 | /* delete temp files */ |
607 | wxRemoveFile(name1); | 607 | wxRemoveFile(name1); |
608 | wxRemoveFile(name2); | 608 | wxRemoveFile(name2); |