diff options
author | Ethan Yonker <dees_troy@teamw.in> | 2014-12-12 01:05:59 +0100 |
---|---|---|
committer | Dees Troy <dees_troy@teamw.in> | 2014-12-12 15:21:52 +0100 |
commit | ac21cb5ae31cc18905ca3314a0619eec974c248e (patch) | |
tree | 70183244e9ba2e8054c231e97c281689d8e76378 | |
parent | Revert "Fix USB Mass Storage on some devices" (diff) | |
download | android_bootable_recovery-ac21cb5ae31cc18905ca3314a0619eec974c248e.tar android_bootable_recovery-ac21cb5ae31cc18905ca3314a0619eec974c248e.tar.gz android_bootable_recovery-ac21cb5ae31cc18905ca3314a0619eec974c248e.tar.bz2 android_bootable_recovery-ac21cb5ae31cc18905ca3314a0619eec974c248e.tar.lz android_bootable_recovery-ac21cb5ae31cc18905ca3314a0619eec974c248e.tar.xz android_bootable_recovery-ac21cb5ae31cc18905ca3314a0619eec974c248e.tar.zst android_bootable_recovery-ac21cb5ae31cc18905ca3314a0619eec974c248e.zip |
Diffstat (limited to '')
-rw-r--r-- | minuitwrp/resources.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/minuitwrp/resources.c b/minuitwrp/resources.c index 6f6d13b2b..bb301477f 100644 --- a/minuitwrp/resources.c +++ b/minuitwrp/resources.c @@ -63,8 +63,11 @@ static int open_png(const char* name, png_structp* png_ptr, png_infop* info_ptr, resPath[sizeof(resPath)-1] = '\0'; FILE* fp = fopen(resPath, "rb"); if (fp == NULL) { - result = -1; - goto exit; + fp = fopen(name, "rb"); + if (fp == NULL) { + result = -1; + goto exit; + } } size_t bytesRead = fread(header, 1, sizeof(header), fp); |