wined3d: Avoid an unnecessary strcpy().

This commit is contained in:
Henri Verbeet 2009-07-07 11:08:00 +02:00 committed by Alexandre Julliard
parent b1edb16691
commit 7ec911adeb
2 changed files with 2 additions and 2 deletions

View File

@ -869,7 +869,7 @@ static void fixup_extensions(WineD3D_GL_Info *gl_info, const char *gl_renderer)
driver_version_table[i].lopart_lo);
gl_info->driver_version_hipart = MAKEDWORD_VERSION(driver_version_table[i].hipart_hi,
driver_version_table[i].hipart_lo);
strcpy(gl_info->driver_description, driver_version_table[i].description);
gl_info->driver_description = driver_version_table[i].description;
break;
}
}

View File

@ -3954,7 +3954,7 @@ typedef struct _WineD3D_GL_Info {
UINT vidmem;
DWORD driver_version;
DWORD driver_version_hipart;
CHAR driver_description[255];
const char *driver_description;
/**
* CAPS Constants
*/