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
5eb8217f
Commit
5eb8217f
authored
Sep 07, 2016
by
Sebastian Lackner
Committed by
Alexandre Julliard
Sep 08, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Add missing calls to GlobalUnlock in render_synthesized_dib.
Signed-off-by:
Sebastian Lackner
<
sebastian@fds-team.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a78fd8a0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
clipboard.c
dlls/user32/clipboard.c
+4
-1
No files found.
dlls/user32/clipboard.c
View file @
5eb8217f
...
@@ -283,7 +283,8 @@ static HANDLE render_synthesized_dib( HANDLE data, UINT format, UINT from )
...
@@ -283,7 +283,8 @@ static HANDLE render_synthesized_dib( HANDLE data, UINT format, UINT from )
header_size
=
(
format
==
CF_DIBV5
)
?
sizeof
(
BITMAPV5HEADER
)
:
header_size
=
(
format
==
CF_DIBV5
)
?
sizeof
(
BITMAPV5HEADER
)
:
offsetof
(
BITMAPINFO
,
bmiColors
[
src
->
bmiHeader
.
biCompression
==
BI_BITFIELDS
?
3
:
0
]
);
offsetof
(
BITMAPINFO
,
bmiColors
[
src
->
bmiHeader
.
biCompression
==
BI_BITFIELDS
?
3
:
0
]
);
if
(
!
(
ret
=
GlobalAlloc
(
GMEM_FIXED
,
header_size
+
bits_size
)))
goto
done
;
if
((
ret
=
GlobalAlloc
(
GMEM_FIXED
,
header_size
+
bits_size
)))
{
bmi
=
(
BITMAPINFO
*
)
ret
;
bmi
=
(
BITMAPINFO
*
)
ret
;
memset
(
bmi
,
0
,
header_size
);
memset
(
bmi
,
0
,
header_size
);
memcpy
(
bmi
,
src
,
min
(
header_size
,
src_size
));
memcpy
(
bmi
,
src
,
min
(
header_size
,
src_size
));
...
@@ -291,6 +292,8 @@ static HANDLE render_synthesized_dib( HANDLE data, UINT format, UINT from )
...
@@ -291,6 +292,8 @@ static HANDLE render_synthesized_dib( HANDLE data, UINT format, UINT from )
/* FIXME: convert colors according to DIBv5 color profile */
/* FIXME: convert colors according to DIBv5 color profile */
memcpy
(
(
char
*
)
bmi
+
header_size
,
(
char
*
)
src
+
src_size
,
bits_size
);
memcpy
(
(
char
*
)
bmi
+
header_size
,
(
char
*
)
src
+
src_size
,
bits_size
);
}
}
GlobalUnlock
(
data
);
}
done:
done:
ReleaseDC
(
0
,
hdc
);
ReleaseDC
(
0
,
hdc
);
...
...
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