GDI: implement color management functions

Alexandre Julliard julliard at
Thu Feb 3 06:26:25 CST 2005

Hans Leidekker <hans at> writes:

> This patch doesn't go as far as allocating and initializing a color
> space on DC creation. It simply creates (a dummy) one when asked for,
> to avoid any impact on performance. It also doesn't fully implement
> color space handles, instead it simply casts a pointer to a handle
> and back.

This cannot possibly work, the pointer won't remain valid. If you
don't want to implement proper handles then return something like
0xdeadbeef and print a FIXME so that it's at least obvious that
something's not working right. Your approach will only lead to
mysterious crashes.

Alexandre Julliard
julliard at

More information about the wine-devel mailing list