Hack/work-around for cursor problem on sparc-solaris

Alexandre Julliard julliard at winehq.com
Tue Mar 26 12:01:58 CST 2002

Warren_Baird at cimmetry.com writes:

> happens in a lot of places...   What I'm suggesting is replacing them with
> something like:
>   HCURSOR cursor = LoadCursorA(...);
>   if (cursor) {
>     SetCursor(cursor);
>   } else {
>     SetDefaultCursor();
>   }
> As I said, if you don't think this will ever happen in 'real life', I'm happy to
> leave my hack in place locally until I get the cursor thing sorted out
> correctly...
> But if there are any legitimate cases where LoadCursorA might fail, this would
> probably give a better result...

I don't think there are places where LoadCursor can legitimately
fail. Besides, since your SetDefaultCursor is not an exported API it
could only be used inside user32.dll, where LoadCursor will definitely
never fail (modulo bugs of course).

Alexandre Julliard
julliard at winehq.com

More information about the wine-devel mailing list