Commit c83ea46e authored by Alexandre Julliard's avatar Alexandre Julliard

user32: Return fake global information in GetCursorInfo instead of thread-local values.

parent 0be02116
......@@ -208,8 +208,8 @@ BOOL WINAPI DECLSPEC_HOTPATCH GetCursorPos( POINT *pt )
BOOL WINAPI GetCursorInfo( PCURSORINFO pci )
{
if (!pci) return 0;
if (get_user_thread_info()->cursor_count >= 0) pci->flags = CURSOR_SHOWING;
else pci->flags = 0;
pci->hCursor = LoadCursorW( 0, (LPCWSTR)IDC_ARROW );
pci->flags = CURSOR_SHOWING;
GetCursorPos(&pci->ptScreenPos);
return 1;
}
......
......@@ -1529,7 +1529,7 @@ static void test_ShowCursor(void)
info.cbSize = sizeof(info);
ok( pGetCursorInfo( &info ), "GetCursorInfo failed\n" );
/* global show count is not affected since we don't have a window */
todo_wine ok( info.flags & CURSOR_SHOWING, "cursor not shown in info\n" );
ok( info.flags & CURSOR_SHOWING, "cursor not shown in info\n" );
}
parent_id = 0;
......@@ -1582,7 +1582,7 @@ static void test_ShowCursor(void)
{
info.cbSize = sizeof(info);
ok( pGetCursorInfo( &info ), "GetCursorInfo failed\n" );
todo_wine ok( info.flags & CURSOR_SHOWING, "cursor not shown in info\n" );
ok( info.flags & CURSOR_SHOWING, "cursor not shown in info\n" );
}
count = ShowCursor( TRUE );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment