Update libretro-common

This commit is contained in:
twinaphex 2018-05-28 17:30:32 +02:00
parent 877766d0ae
commit 23b0444afe
3 changed files with 18 additions and 9 deletions

View File

@ -588,7 +588,10 @@ void d3d9x_constant_table_set_defaults(LPDIRECT3DDEVICE9 dev,
#if defined(HAVE_D3DX)
LPD3DXCONSTANTTABLE consttbl = (LPD3DXCONSTANTTABLE)p;
if (consttbl && dev)
consttbl->lpVtbl->SetDefaults(consttbl, dev);
{
if (consttbl->lpVtbl->SetDefaults)
consttbl->lpVtbl->SetDefaults(consttbl, dev);
}
#endif
}

View File

@ -378,13 +378,15 @@ const char *path_get_extension(const char *path)
* path_remove_extension:
* @path : path
*
* Removes the extension from the path and returns the result.
* Removes all text after and including the last '.'.
* Mutates path by removing its extension. Removes all
* text after and including the last '.'.
* Only '.'s after the last slash are considered.
*
* Returns: path with the extension part removed.
* If there is no extension at the end of path,
* returns a pointer to the unaltered original path.
* Returns:
* 1) If path has an extension, returns path with the
* extension removed.
* 2) If there is no extension, returns NULL.
* 3) If path is empty or NULL, returns NULL
*/
char *path_remove_extension(char *path)
{

View File

@ -100,11 +100,15 @@ const char *path_get_extension(const char *path);
* path_remove_extension:
* @path : path
*
* Removes the extension from the path and returns the result.
* Removes all text after and including the last '.'.
* Mutates path by removing its extension. Removes all
* text after and including the last '.'.
* Only '.'s after the last slash are considered.
*
* Returns: path with the extension part removed.
* Returns:
* 1) If path has an extension, returns path with the
* extension removed.
* 2) If there is no extension, returns NULL.
* 3) If path is empty or NULL, returns NULL
*/
char *path_remove_extension(char *path);