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
eeda373f
Commit
eeda373f
authored
May 10, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Fix checking of show count in ShowCursor.
parent
612df7ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
cursoricon.c
dlls/user32/cursoricon.c
+6
-5
No files found.
dlls/user32/cursoricon.c
View file @
eeda373f
...
...
@@ -1701,7 +1701,7 @@ INT WINAPI DECLSPEC_HOTPATCH ShowCursor( BOOL bShow )
{
HCURSOR
cursor
;
int
increment
=
bShow
?
1
:
-
1
;
int
prev_
count
;
int
count
;
SERVER_START_REQ
(
set_cursor
)
{
...
...
@@ -1709,15 +1709,16 @@ INT WINAPI DECLSPEC_HOTPATCH ShowCursor( BOOL bShow )
req
->
show_count
=
increment
;
wine_server_call
(
req
);
cursor
=
wine_server_ptr_handle
(
reply
->
prev_handle
);
prev_count
=
reply
->
prev_cou
nt
;
count
=
reply
->
prev_count
+
increme
nt
;
}
SERVER_END_REQ
;
TRACE
(
"%d, count=%d
\n
"
,
bShow
,
prev_count
+
increme
nt
);
TRACE
(
"%d, count=%d
\n
"
,
bShow
,
cou
nt
);
if
(
!
prev_count
)
USER_Driver
->
pSetCursor
(
bShow
?
cursor
:
0
);
if
(
bShow
&&
!
count
)
USER_Driver
->
pSetCursor
(
cursor
);
else
if
(
!
bShow
&&
count
==
-
1
)
USER_Driver
->
pSetCursor
(
0
);
return
prev_count
+
increme
nt
;
return
cou
nt
;
}
/***********************************************************************
...
...
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