Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
04412f7a
Commit
04412f7a
authored
Dec 05, 2012
by
Vincent Povirk
Committed by
Alexandre Julliard
Dec 06, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Avoid accessing dib bits directly in GdipCreateBitmapFromHBITMAP.
parent
c98767a4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
image.c
dlls/gdiplus/image.c
+0
-12
No files found.
dlls/gdiplus/image.c
View file @
04412f7a
...
...
@@ -4694,17 +4694,6 @@ GpStatus WINGDIPAPI GdipCreateBitmapFromHBITMAP(HBITMAP hbm, HPALETTE hpal, GpBi
format
,
&
lockeddata
);
if
(
retval
==
Ok
)
{
if
(
bm
.
bmBits
)
{
for
(
y
=
0
;
y
<
bm
.
bmHeight
;
y
++
)
{
memcpy
((
BYTE
*
)
lockeddata
.
Scan0
+
lockeddata
.
Stride
*
y
,
(
BYTE
*
)
bm
.
bmBits
+
bm
.
bmWidthBytes
*
(
bm
.
bmHeight
-
1
-
y
),
bm
.
bmWidthBytes
);
}
}
else
{
HDC
hdc
;
HBITMAP
oldhbm
;
BITMAPINFO
*
pbmi
;
...
...
@@ -4749,7 +4738,6 @@ GpStatus WINGDIPAPI GdipCreateBitmapFromHBITMAP(HBITMAP hbm, HPALETTE hpal, GpBi
SelectObject
(
hdc
,
oldhbm
);
DeleteDC
(
hdc
);
}
GdipBitmapUnlockBits
(
*
bitmap
,
&
lockeddata
);
}
...
...
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