dmime: Use a rbtree to store the PChannels of a performance.
commit9b6a45638194fe63241dc7ff81aed3fcea3a6c81
authorMichael Stefaniuc <mstefani@winehq.org>
Thu, 19 Dec 2019 22:20:18 +0000 (19 23:20 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 20 Dec 2019 09:32:25 +0000 (20 10:32 +0100)
tree1806540c5bf3eca7a29538fb01bfee4b131486e7
parent4335be346271072f440419b9234883aef187d857
dmime: Use a rbtree to store the PChannels of a performance.

The PChannel id is a 32bit, potentially random identifier and not an
array index.
Fixes also the handling of channel group "dwGroup" 0. As it is invalid
it is used to mark uninitialized PChannels.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=17766
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=24740
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=31562
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/dmime/performance.c