user32: Test the initial state of the cursor.

Alexandre Julliard julliard at winehq.org
Mon Dec 10 05:08:23 CST 2007


"Andrew Riedi" <andrewriedi at gmail.com> writes:

> +static void test_initial_cursor(void)
> +{
> +    HCURSOR cursor, cursor2;
> +    DWORD error;
> +
> +    cursor = GetCursor();
> +
> +    /* Check what handle GetCursor() returns if a cursor is not set yet. */
> +    SetLastError(0xdeadbeef);
> +    cursor2 = LoadCursor(NULL, IDC_WAIT);
> +    todo_wine {
> +        ok(cursor == (HCURSOR) 0x00010015, "Cursor handle is %p, not 0x00010015.\n", cursor);

It doesn't make sense to hardcode handle values, it's not a behavior we
want to replicate.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list