Fix loading of png images in custom themes

Change-Id: I7eebc474c025eda534adb04d061795623ebecdda
This commit is contained in:
Ethan Yonker
2014-12-11 18:05:59 -06:00
committed by Dees Troy
parent b6ef4781d2
commit ac21cb5ae3
+5 -2
View File
@@ -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);