kernel: Forward Atom APIs to ntdll

Dmitry Timoshkov dmitry at baikal.ru
Fri Sep 9 02:24:16 CDT 2005


"James Hawkins" <truiken at gmail.com> wrote:

> +        if (!table)
>          {
> -            req->atom = atom;
> -            req->table = table;
> -            wine_server_set_reply( req, full_name, sizeof(full_name) );
> -            if (!wine_server_call_err( req ))
> +            ATOM_BASIC_INFORMATION *abi;
> +
> +            size = sizeof(*abi) + MAX_ATOM_LEN * sizeof(WCHAR);
> +            abi = HeapAlloc(GetProcessHeap(), 0, size);

Using HeapAlloc will considerably slowdown the function, you can safely
allocate the necessary buffer on the stack. The same for GetAtomNameW.

-- 
Dmitry.




More information about the wine-devel mailing list