Should fix UPS/IPS/BPS patching

This commit is contained in:
twinaphex 2015-03-12 21:56:13 +01:00
parent 6694d813e3
commit 4d62a1883e

View File

@ -443,11 +443,12 @@ static bool apply_patch_content(uint8_t **buf,
ssize_t ret_size = *size;
uint8_t *ret_buf = *buf;
if (!read_file(patch_desc, &patch_data, &patch_size))
if (!read_file(patch_path, &patch_data, &patch_size))
return false;
if (patch_size < 0)
return false;
if (!path_file_exists(patch_path))
return false;