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
61bace5b
Commit
61bace5b
authored
Dec 17, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "user32: Moved some 16-bit functions."
This partially reverts commit
6e9fea22
. 16-bit and 32-bit clipboard handles aren't interchangeable.
parent
f1dcf4bf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
18 deletions
+51
-18
clipboard.c
dlls/user32/clipboard.c
+51
-0
user16.c
dlls/user32/user16.c
+0
-18
No files found.
dlls/user32/clipboard.c
View file @
61bace5b
...
@@ -486,6 +486,35 @@ BOOL WINAPI ChangeClipboardChain(HWND hWnd, HWND hWndNext)
...
@@ -486,6 +486,35 @@ BOOL WINAPI ChangeClipboardChain(HWND hWnd, HWND hWndNext)
/**************************************************************************
/**************************************************************************
* SetClipboardData (USER.141)
*/
HANDLE16
WINAPI
SetClipboardData16
(
UINT16
wFormat
,
HANDLE16
hData
)
{
CLIPBOARDINFO
cbinfo
;
HANDLE16
hResult
=
0
;
TRACE
(
"(%04X, %04x) !
\n
"
,
wFormat
,
hData
);
/* If it's not owned, data can only be set if the format doesn't exists
and its rendering is not delayed */
if
(
!
CLIPBOARD_GetClipboardInfo
(
&
cbinfo
)
||
(
!
(
cbinfo
.
flags
&
CB_OWNER
)
&&
!
hData
))
{
WARN
(
"Clipboard not owned by calling task. Operation failed.
\n
"
);
return
0
;
}
if
(
USER_Driver
->
pSetClipboardData
(
wFormat
,
hData
,
0
,
cbinfo
.
flags
&
CB_OWNER
))
{
hResult
=
hData
;
bCBHasChanged
=
TRUE
;
}
return
hResult
;
}
/**************************************************************************
* SetClipboardData (USER32.@)
* SetClipboardData (USER32.@)
*/
*/
HANDLE
WINAPI
SetClipboardData
(
UINT
wFormat
,
HANDLE
hData
)
HANDLE
WINAPI
SetClipboardData
(
UINT
wFormat
,
HANDLE
hData
)
...
@@ -557,6 +586,28 @@ BOOL WINAPI IsClipboardFormatAvailable(UINT wFormat)
...
@@ -557,6 +586,28 @@ BOOL WINAPI IsClipboardFormatAvailable(UINT wFormat)
/**************************************************************************
/**************************************************************************
* GetClipboardData (USER.142)
*/
HANDLE16
WINAPI
GetClipboardData16
(
UINT16
wFormat
)
{
HANDLE16
hData
=
0
;
CLIPBOARDINFO
cbinfo
;
if
(
!
CLIPBOARD_GetClipboardInfo
(
&
cbinfo
)
||
(
~
cbinfo
.
flags
&
CB_OPEN
))
{
WARN
(
"Clipboard not opened by calling task.
\n
"
);
SetLastError
(
ERROR_CLIPBOARD_NOT_OPEN
);
return
0
;
}
if
(
!
USER_Driver
->
pGetClipboardData
(
wFormat
,
&
hData
,
NULL
))
hData
=
0
;
return
hData
;
}
/**************************************************************************
* GetClipboardData (USER32.@)
* GetClipboardData (USER32.@)
*/
*/
HANDLE
WINAPI
GetClipboardData
(
UINT
wFormat
)
HANDLE
WINAPI
GetClipboardData
(
UINT
wFormat
)
...
...
dlls/user32/user16.c
View file @
61bace5b
...
@@ -447,24 +447,6 @@ BOOL16 WINAPI EmptyClipboard16(void)
...
@@ -447,24 +447,6 @@ BOOL16 WINAPI EmptyClipboard16(void)
/**************************************************************************
/**************************************************************************
* SetClipboardData (USER.141)
*/
HANDLE16
WINAPI
SetClipboardData16
(
UINT16
wFormat
,
HANDLE16
hData
)
{
return
HANDLE_16
(
SetClipboardData
(
wFormat
,
HANDLE_32
(
hData
)));
}
/**************************************************************************
* GetClipboardData (USER.142)
*/
HANDLE16
WINAPI
GetClipboardData16
(
UINT16
wFormat
)
{
return
HANDLE_16
(
GetClipboardData
(
wFormat
));
}
/**************************************************************************
* CountClipboardFormats (USER.143)
* CountClipboardFormats (USER.143)
*/
*/
INT16
WINAPI
CountClipboardFormats16
(
void
)
INT16
WINAPI
CountClipboardFormats16
(
void
)
...
...
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