Commit 80294709 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

winebuild: Cast-qual warning fix.

parent eda8b955
...@@ -147,10 +147,11 @@ inline static ORDDEF *find_export( const char *name, ORDDEF **table, int size ) ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment