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
31576d40
Commit
31576d40
authored
Feb 05, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Avoid locking in BITMAP_CopyBitmap.
parent
630c976f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
bitmap.c
dlls/gdi32/bitmap.c
+1
-7
No files found.
dlls/gdi32/bitmap.c
View file @
31576d40
...
@@ -510,14 +510,10 @@ LONG WINAPI SetBitmapBits(
...
@@ -510,14 +510,10 @@ LONG WINAPI SetBitmapBits(
*/
*/
HBITMAP
BITMAP_CopyBitmap
(
HBITMAP
hbitmap
)
HBITMAP
BITMAP_CopyBitmap
(
HBITMAP
hbitmap
)
{
{
BITMAPOBJ
*
bmp
=
(
BITMAPOBJ
*
)
GDI_GetObjPtr
(
hbitmap
,
BITMAP_MAGIC
);
HBITMAP
res
=
0
;
HBITMAP
res
=
0
;
BITMAP
bm
;
BITMAP
bm
;
if
(
!
bmp
)
return
0
;
if
(
!
GetObjectW
(
hbitmap
,
sizeof
(
bm
),
&
bm
))
return
0
;
bm
=
bmp
->
bitmap
;
bm
.
bmBits
=
NULL
;
res
=
CreateBitmapIndirect
(
&
bm
);
res
=
CreateBitmapIndirect
(
&
bm
);
if
(
res
)
{
if
(
res
)
{
...
@@ -527,8 +523,6 @@ HBITMAP BITMAP_CopyBitmap(HBITMAP hbitmap)
...
@@ -527,8 +523,6 @@ HBITMAP BITMAP_CopyBitmap(HBITMAP hbitmap)
SetBitmapBits
(
res
,
bm
.
bmWidthBytes
*
bm
.
bmHeight
,
buf
);
SetBitmapBits
(
res
,
bm
.
bmWidthBytes
*
bm
.
bmHeight
,
buf
);
HeapFree
(
GetProcessHeap
(),
0
,
buf
);
HeapFree
(
GetProcessHeap
(),
0
,
buf
);
}
}
GDI_ReleaseObj
(
hbitmap
);
return
res
;
return
res
;
}
}
...
...
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