Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
c83ea46e
Commit
c83ea46e
authored
Mar 19, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Return fake global information in GetCursorInfo instead of thread-local values.
parent
0be02116
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
input.c
dlls/user32/input.c
+2
-2
cursoricon.c
dlls/user32/tests/cursoricon.c
+2
-2
No files found.
dlls/user32/input.c
View file @
c83ea46e
...
...
@@ -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
;
}
...
...
dlls/user32/tests/cursoricon.c
View file @
c83ea46e
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment