ntdll / kernel32: #52

Alexandre Julliard julliard at winehq.org
Wed Dec 22 09:18:10 CST 2004


Eric Pouech <pouech-eric at wanadoo.fr> writes:

> +/* FIXME: 0xFFFFFFFF is our shortcut for global table
> + * we could also tweak init_atom_table request to get a handle to the
> + * global table in wineserver
> + */
> +#define GLOBAL_ATOM_TABLE       ((void*)0xFFFFFFFF)

Yes, you need to get a valid handle here, 0xffffffff is the current
process pseudo-handle and we don't want to overload that meaning.

Also your local table allocation is not thread-safe, it can
potentially leak an atom table.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list