winebuild: Cast-qual warning fix.

This commit is contained in:
Andrew Talbot 2006-10-11 15:11:04 +01:00 committed by Alexandre Julliard
parent eda8b9550b
commit 80294709c5

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;
}