winebuild: Cast-qual warning fix.

oldstable
Andrew Talbot 2006-10-11 15:11:04 +01:00 committed by Alexandre Julliard
parent eda8b9550b
commit 80294709c5
1 changed files with 2 additions and 1 deletions

View File

@ -147,10 +147,11 @@ inline static ORDDEF *find_export( const char *name, ORDDEF **table, int size )
{
ORDDEF func, *odp, **res = NULL;
func.name = (char *)name;
func.name = xstrdup(name);
func.ordinal = -1;
odp = &func;
if (table) res = bsearch( &odp, table, size, sizeof(*table), func_cmp );
free( func.name );
return res ? *res : NULL;
}