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
0ff8c9da
Commit
0ff8c9da
authored
Mar 05, 2013
by
Andrew Talbot
Committed by
Alexandre Julliard
Mar 06, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Avoid signed-unsigned integer comparisons.
parent
a9983e6c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
mouse.c
dlls/winex11.drv/mouse.c
+3
-1
window.c
dlls/winex11.drv/window.c
+2
-1
xrender.c
dlls/winex11.drv/xrender.c
+1
-1
No files found.
dlls/winex11.drv/mouse.c
View file @
0ff8c9da
...
...
@@ -1220,8 +1220,10 @@ static Cursor create_xlib_color_cursor( HDC hdc, const ICONINFOEXW *icon, int wi
}
else
/* invert the mask */
{
unsigned
int
j
;
ptr
=
(
unsigned
int
*
)
mask_bits
;
for
(
i
=
0
;
i
<
info
->
bmiHeader
.
biSizeImage
/
sizeof
(
*
ptr
);
i
++
,
ptr
++
)
*
ptr
^=
~
0u
;
for
(
j
=
0
;
j
<
info
->
bmiHeader
.
biSizeImage
/
sizeof
(
*
ptr
);
j
++
,
ptr
++
)
*
ptr
^=
~
0u
;
}
vis
.
depth
=
1
;
...
...
dlls/winex11.drv/window.c
View file @
0ff8c9da
...
...
@@ -534,7 +534,8 @@ static BOOL create_icon_pixmaps( HDC hdc, const ICONINFO *icon, Pixmap *icon_ret
XVisualInfo
vis
=
default_visual
;
struct
gdi_image_bits
bits
;
Pixmap
color_pixmap
=
0
,
mask_pixmap
=
0
;
int
i
,
lines
;
int
lines
;
unsigned
int
i
;
bits
.
ptr
=
NULL
;
bits
.
free
=
NULL
;
...
...
dlls/winex11.drv/xrender.c
View file @
0ff8c9da
...
...
@@ -763,7 +763,7 @@ static void lfsz_calc_hash(LFANDSIZE *plfsz)
{
DWORD
hash
=
0
,
*
ptr
,
two_chars
;
WORD
*
pwc
;
int
i
;
unsigned
int
i
;
hash
^=
plfsz
->
devsize
.
cx
;
hash
^=
plfsz
->
devsize
.
cy
;
...
...
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