Fix Coverity defects

This commit is contained in:
twinaphex 2018-03-24 11:59:01 +01:00
parent 9057ffbde4
commit 9b8713aebd
10 changed files with 20 additions and 20 deletions

View File

@ -773,8 +773,8 @@ static bool ctr_frame(void* data, const void* frame,
}
else if (video_info->statistics_show)
{
struct font_params *osd_params = video_info ?
(struct font_params*)&video_info->osd_stat_params : NULL;
struct font_params *osd_params = (struct font_params*)
&video_info->osd_stat_params;
if (osd_params)
{

View File

@ -1270,8 +1270,8 @@ static bool d3d11_gfx_frame(
}
else if (video_info->statistics_show)
{
struct font_params *osd_params = video_info ?
(struct font_params*)&video_info->osd_stat_params : NULL;
struct font_params *osd_params = (struct font_params*)
&video_info->osd_stat_params;
if (osd_params)
{

View File

@ -1456,8 +1456,8 @@ static bool d3d12_gfx_frame(
}
else if (video_info->statistics_show)
{
struct font_params *osd_params = video_info ?
(struct font_params*)&video_info->osd_stat_params : NULL;
struct font_params *osd_params = (struct font_params*)
&video_info->osd_stat_params;
if (osd_params)
{

View File

@ -1626,8 +1626,8 @@ static bool d3d8_frame(void *data, const void *frame,
}
else if (video_info->statistics_show)
{
struct font_params *osd_params = video_info ?
(struct font_params*)&video_info->osd_stat_params : NULL;
struct font_params *osd_params = (struct font_params*)
&video_info->osd_stat_params;
if (osd_params)
{

View File

@ -1603,8 +1603,8 @@ static bool d3d9_frame(void *data, const void *frame,
}
else if (video_info->statistics_show)
{
struct font_params *osd_params = video_info ?
(struct font_params*)&video_info->osd_stat_params : NULL;
struct font_params *osd_params = (struct font_params*)
&video_info->osd_stat_params;
if (osd_params)
{

View File

@ -1146,8 +1146,8 @@ static bool gl_frame(void *data, const void *frame,
}
else if (video_info->statistics_show)
{
struct font_params *osd_params = video_info ?
(struct font_params*)&video_info->osd_stat_params : NULL;
struct font_params *osd_params = (struct font_params*)
&video_info->osd_stat_params;
if (osd_params)
{

View File

@ -1344,8 +1344,8 @@ static bool wiiu_gfx_frame(void *data, const void *frame,
menu_driver_frame(video_info);
else if (video_info->statistics_show)
{
struct font_params *osd_params = video_info ?
(struct font_params*)&video_info->osd_stat_params : NULL;
struct font_params *osd_params = (struct font_params*)
&video_info->osd_stat_params;
if (osd_params)
{

View File

@ -209,8 +209,8 @@ static bool switch_frame(void *data, const void *frame,
}
else if (video_info->statistics_show)
{
struct font_params *osd_params = video_info ?
(struct font_params*)&video_info->osd_stat_params : NULL;
struct font_params *osd_params = (struct font_params*)
&video_info->osd_stat_params;
if (osd_params)
{

View File

@ -252,8 +252,8 @@ static bool vita2d_gfx_frame(void *data, const void *frame,
}
else if (video_info->statistics_show)
{
struct font_params *osd_params = video_info ?
(struct font_params*)&video_info->osd_stat_params : NULL;
struct font_params *osd_params = (struct font_params*)
&video_info->osd_stat_params;
if (osd_params)
{

View File

@ -1843,8 +1843,8 @@ static bool vulkan_frame(void *data, const void *frame,
}
else if (video_info->statistics_show)
{
struct font_params *osd_params = video_info ?
(struct font_params*)&video_info->osd_stat_params : NULL;
struct font_params *osd_params = (struct font_params*)
&video_info->osd_stat_params;
if (osd_params)
{