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
0a1da6bc
Commit
0a1da6bc
authored
Sep 27, 2016
by
Sebastian Lackner
Committed by
Alexandre Julliard
Sep 28, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Call GlobalUnlock with the correct argument in SetClipboardData.
Signed-off-by:
Sebastian Lackner
<
sebastian@fds-team.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f669dc69
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
clipboard.c
dlls/user32/clipboard.c
+5
-4
No files found.
dlls/user32/clipboard.c
View file @
0a1da6bc
...
...
@@ -868,7 +868,7 @@ HANDLE WINAPI SetClipboardData( UINT format, HANDLE data )
void
*
ptr
=
NULL
;
data_size_t
size
=
0
;
HANDLE
handle
=
data
,
retval
=
0
;
BOOL
ret
;
NTSTATUS
status
=
STATUS_SUCCESS
;
TRACE
(
"%s %p
\n
"
,
debugstr_format
(
format
),
data
);
...
...
@@ -888,14 +888,14 @@ HANDLE WINAPI SetClipboardData( UINT format, HANDLE data )
req
->
format
=
format
;
req
->
lcid
=
GetUserDefaultLCID
();
wine_server_add_data
(
req
,
ptr
,
size
);
if
(
(
ret
=
!
wine_server_call_err
(
req
)))
if
(
!
(
status
=
wine_server_call
(
req
)))
{
if
(
cache
)
cache
->
seqno
=
reply
->
seqno
;
}
}
SERVER_END_REQ
;
if
(
ret
)
if
(
!
status
)
{
/* free the previous entry if any */
struct
cached_format
*
prev
;
...
...
@@ -909,8 +909,9 @@ HANDLE WINAPI SetClipboardData( UINT format, HANDLE data )
LeaveCriticalSection
(
&
clipboard_cs
);
done:
if
(
ptr
)
GlobalUnlock
(
ptr
);
if
(
ptr
)
GlobalUnlock
(
handle
);
if
(
handle
!=
data
)
GlobalFree
(
handle
);
if
(
status
)
SetLastError
(
RtlNtStatusToDosError
(
status
));
return
retval
;
}
...
...
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