summaryrefslogtreecommitdiffstats
path: root/minuitwrp/resources.c
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2014-12-12 01:05:59 +0100
committerDees Troy <dees_troy@teamw.in>2014-12-12 15:21:52 +0100
commitac21cb5ae31cc18905ca3314a0619eec974c248e (patch)
tree70183244e9ba2e8054c231e97c281689d8e76378 /minuitwrp/resources.c
parentRevert "Fix USB Mass Storage on some devices" (diff)
downloadandroid_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.c7
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);