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
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
clipboard.c
dlls/user32/clipboard.c
+10
-7
No files found.
dlls/user32/clipboard.c
View file @
5eb8217f
...
@@ -283,13 +283,16 @@ static HANDLE render_synthesized_dib( HANDLE data, UINT format, UINT from )
...
@@ -283,13 +283,16 @@ 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
;
{
memset
(
bmi
,
0
,
header_size
);
bmi
=
(
BITMAPINFO
*
)
ret
;
memcpy
(
bmi
,
src
,
min
(
header_size
,
src_size
));
memset
(
bmi
,
0
,
header_size
);
bmi
->
bmiHeader
.
biSize
=
header_size
;
memcpy
(
bmi
,
src
,
min
(
header_size
,
src_size
));
/* FIXME: convert colors according to DIBv5 color profile */
bmi
->
bmiHeader
.
biSize
=
header_size
;
memcpy
(
(
char
*
)
bmi
+
header_size
,
(
char
*
)
src
+
src_size
,
bits_size
);
/* FIXME: convert colors according to DIBv5 color profile */
memcpy
(
(
char
*
)
bmi
+
header_size
,
(
char
*
)
src
+
src_size
,
bits_size
);
}
GlobalUnlock
(
data
);
}
}
done:
done:
...
...
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