winebuild: Cast-qual warning fix.
This commit is contained in:
parent
eda8b9550b
commit
80294709c5
|
@ -147,10 +147,11 @@ inline static ORDDEF *find_export( const char *name, ORDDEF **table, int size )
|
||||||
{
|
{
|
||||||
ORDDEF func, *odp, **res = NULL;
|
ORDDEF func, *odp, **res = NULL;
|
||||||
|
|
||||||
func.name = (char *)name;
|
func.name = xstrdup(name);
|
||||||
func.ordinal = -1;
|
func.ordinal = -1;
|
||||||
odp = &func;
|
odp = &func;
|
||||||
if (table) res = bsearch( &odp, table, size, sizeof(*table), func_cmp );
|
if (table) res = bsearch( &odp, table, size, sizeof(*table), func_cmp );
|
||||||
|
free( func.name );
|
||||||
return res ? *res : NULL;
|
return res ? *res : NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue