Re: kernel: Forward Atom APIs to ntdll
9 Sep
2005
9 Sep
'05
2:24 a.m.
"James Hawkins" <truiken(a)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.
7489
Age (days ago)
7489
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dmitry Timoshkov