msctf: add internal function for handling TfClientIds
Alexandre Julliard
julliard at winehq.org
Mon Feb 23 06:19:14 CST 2009
Aric Stewart <aric at 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 at winehq.org
More information about the wine-devel
mailing list