Fix loading of png images in custom themes
Change-Id: I7eebc474c025eda534adb04d061795623ebecdda
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user