System/Libraries/Html/Renderer: Always return DEFAULT_FAVICON instead of NULL
This commit is contained in:
parent
100b54a9cd
commit
b30759c12e
1 changed files with 3 additions and 4 deletions
|
@ -1128,9 +1128,8 @@ Context2D* @process_favicon(Context2D* tmpctx)
|
||||||
|
|
||||||
Context2D* @favicon_for_page(HtmlRenderer* renderer)
|
Context2D* @favicon_for_page(HtmlRenderer* renderer)
|
||||||
{
|
{
|
||||||
if (!renderer) {
|
if (!renderer)
|
||||||
return;
|
return DEFAULT_FAVICON;
|
||||||
}
|
|
||||||
|
|
||||||
U8 status_text_buffer[128];
|
U8 status_text_buffer[128];
|
||||||
U8 buf[HTML_WORK_BUFFER_SIZE];
|
U8 buf[HTML_WORK_BUFFER_SIZE];
|
||||||
|
@ -1176,7 +1175,7 @@ Context2D* @favicon_for_page(HtmlRenderer* renderer)
|
||||||
}
|
}
|
||||||
if (!resp->body.length) {
|
if (!resp->body.length) {
|
||||||
Free(buffer);
|
Free(buffer);
|
||||||
return;
|
return DEFAULT_FAVICON;
|
||||||
}
|
}
|
||||||
@http_cache_resource(buf, resp->body.data, resp->body.length, renderer->cache_directory);
|
@http_cache_resource(buf, resp->body.data, resp->body.length, renderer->cache_directory);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue