Re: msctf: add internal function for handling TfClientIds
23 Feb
2009
23 Feb
'09
12:19 p.m.
Aric Stewart <aric(a)codeweavers.com> writes:
+ /* If i understand this correctly at most a process should generate + * only a handful of these... But in case I am wrong */ + if (id_last == 65535) + { + ERR("TfClientIds generated exceeds USHORT limit\n"); + return 0x0; + } + id_last++; + id->id = MAKELONG(id_last, magic); + id->data = data; + list_add_head(&clientids,&id->entry);
Using an array index would be cleaner than having to search through the list everytime you use an id. -- Alexandre Julliard julliard(a)winehq.org
6137
Age (days ago)
6137
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard