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
f02fcfc3
Commit
f02fcfc3
authored
Mar 04, 2000
by
Joerg Mayer
Committed by
Alexandre Julliard
Mar 04, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a sign bug where memcpy was called with negative length.
parent
e4960a1f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
dib.c
graphics/x11drv/dib.c
+2
-1
No files found.
graphics/x11drv/dib.c
View file @
f02fcfc3
...
...
@@ -2279,6 +2279,7 @@ static void X11DRV_DIB_GetImageBits_32( int lines, BYTE *dstbits,
/* align to 32 bit */
DWORD
linebytes
=
(
srcwidth
*
4
);
DWORD
copybytes
=
linebytes
;
if
(
lines
<
0
)
{
...
...
@@ -2296,7 +2297,7 @@ static void X11DRV_DIB_GetImageBits_32( int lines, BYTE *dstbits,
/* ==== 24/32 BGR bitmap to 32 BGR dib ==== */
if
(
bmpImage
->
red_mask
==
0xff0000
&&
bmpImage
->
blue_mask
==
0xff
)
for
(
h
=
lines
-
1
;
h
>=
0
;
h
--
,
dstbits
+=
linebytes
)
memcpy
(
dstbits
,
bmpImage
->
data
+
h
*
bmpImage
->
bytes_per_line
,
line
bytes
);
memcpy
(
dstbits
,
bmpImage
->
data
+
h
*
bmpImage
->
bytes_per_line
,
copy
bytes
);
/* ==== 24/32 RGB bitmap to 32 BGR dib ==== */
else
if
(
bmpImage
->
red_mask
==
0xff
&&
bmpImage
->
blue_mask
==
0xff0000
)
...
...
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