Fix cosmetic issues

This commit is contained in:
d0k3 2016-06-17 19:49:19 +02:00
parent 56ac8c1e68
commit d081645ea2
2 changed files with 3 additions and 2 deletions

View File

@ -358,6 +358,7 @@ bool FileInjectFile(const char* dest, const char* orig, u32 offset) {
}
ret = true;
ShowProgress(0, 0, orig);
for (size_t pos = 0; (pos < osize) && ret; pos += MAIN_BUFFER_SIZE) {
UINT read_bytes = min(MAIN_BUFFER_SIZE, osize - pos);
UINT bytes_read = read_bytes;

View File

@ -502,8 +502,8 @@ u32 GodMode() {
if (clipboard->n_entries && (strcspn(clipboard->entry[0].path, IMG_DRV) == 0))
clipboard->n_entries = 0; // remove invalid clipboard stuff
} else if (injectable && (user_select == 3)) { // -> inject data from clipboard
char origstr[24 + 1];
TruncateString(origstr, clipboard->entry[0].name, 24, 8);
char origstr[18 + 1];
TruncateString(origstr, clipboard->entry[0].name, 18, 8);
u64 offset = ShowHexPrompt(0, 8, "Inject data from %s?\nSpecifiy offset below.", origstr);
if ((offset != (u64) -1) && !FileInjectFile(curr_entry->path, clipboard->entry[0].path, (u32) offset))
ShowPrompt(false, "Failed injecting %s", origstr);