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
83b66549
Commit
83b66549
authored
Dec 22, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Get rid of 16-bit handles in the driver clipboard interface.
parent
3313c40b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
14 deletions
+13
-14
clipboard.c
dlls/user32/clipboard.c
+2
-3
driver.c
dlls/user32/driver.c
+7
-7
user_private.h
dlls/user32/user_private.h
+2
-2
clipboard.c
dlls/winex11.drv/clipboard.c
+0
-0
winex11.drv.spec
dlls/winex11.drv/winex11.drv.spec
+2
-2
No files found.
dlls/user32/clipboard.c
View file @
83b66549
...
...
@@ -46,7 +46,6 @@
#include "wingdi.h"
#include "winuser.h"
#include "winerror.h"
#include "wine/winbase16.h"
#include "user_private.h"
#include "win.h"
...
...
@@ -479,7 +478,7 @@ HANDLE WINAPI SetClipboardData(UINT wFormat, HANDLE hData)
return
0
;
}
if
(
USER_Driver
->
pSetClipboardData
(
wFormat
,
0
,
hData
,
cbinfo
.
flags
&
CB_OWNER
))
if
(
USER_Driver
->
pSetClipboardData
(
wFormat
,
hData
,
cbinfo
.
flags
&
CB_OWNER
))
{
hResult
=
hData
;
bCBHasChanged
=
TRUE
;
...
...
@@ -549,7 +548,7 @@ HANDLE WINAPI GetClipboardData(UINT wFormat)
return
0
;
}
if
(
!
USER_Driver
->
pGetClipboardData
(
wFormat
,
NULL
,
&
hData
))
hData
=
0
;
hData
=
USER_Driver
->
pGetClipboardData
(
wFormat
)
;
TRACE
(
"returning %p
\n
"
,
hData
);
return
hData
;
...
...
dlls/user32/driver.c
View file @
83b66549
...
...
@@ -266,9 +266,9 @@ static UINT CDECL nulldrv_EnumClipboardFormats( UINT format )
return
0
;
}
static
BOOL
CDECL
nulldrv_GetClipboardData
(
UINT
format
,
HANDLE16
*
h16
,
HANDLE
*
h32
)
static
HANDLE
CDECL
nulldrv_GetClipboardData
(
UINT
format
)
{
return
FALSE
;
return
0
;
}
static
INT
CDECL
nulldrv_GetClipboardFormatName
(
UINT
format
,
LPWSTR
buffer
,
UINT
len
)
...
...
@@ -286,7 +286,7 @@ static UINT CDECL nulldrv_RegisterClipboardFormat( LPCWSTR name )
return
0
;
}
static
BOOL
CDECL
nulldrv_SetClipboardData
(
UINT
format
,
HANDLE
16
h16
,
HANDLE
h32
,
BOOL
owner
)
static
BOOL
CDECL
nulldrv_SetClipboardData
(
UINT
format
,
HANDLE
handle
,
BOOL
owner
)
{
return
FALSE
;
}
...
...
@@ -613,9 +613,9 @@ static UINT CDECL loaderdrv_EnumClipboardFormats( UINT format )
return
load_driver
()
->
pEnumClipboardFormats
(
format
);
}
static
BOOL
CDECL
loaderdrv_GetClipboardData
(
UINT
format
,
HANDLE16
*
h16
,
HANDLE
*
h32
)
static
HANDLE
CDECL
loaderdrv_GetClipboardData
(
UINT
format
)
{
return
load_driver
()
->
pGetClipboardData
(
format
,
h16
,
h32
);
return
load_driver
()
->
pGetClipboardData
(
format
);
}
static
INT
CDECL
loaderdrv_GetClipboardFormatName
(
UINT
format
,
LPWSTR
buffer
,
UINT
len
)
...
...
@@ -633,9 +633,9 @@ static UINT CDECL loaderdrv_RegisterClipboardFormat( LPCWSTR name )
return
load_driver
()
->
pRegisterClipboardFormat
(
name
);
}
static
BOOL
CDECL
loaderdrv_SetClipboardData
(
UINT
format
,
HANDLE
16
h16
,
HANDLE
h32
,
BOOL
owner
)
static
BOOL
CDECL
loaderdrv_SetClipboardData
(
UINT
format
,
HANDLE
handle
,
BOOL
owner
)
{
return
load_driver
()
->
pSetClipboardData
(
format
,
h
16
,
h32
,
owner
);
return
load_driver
()
->
pSetClipboardData
(
format
,
h
andle
,
owner
);
}
static
LONG
CDECL
loaderdrv_ChangeDisplaySettingsEx
(
LPCWSTR
name
,
LPDEVMODEW
mode
,
HWND
hwnd
,
...
...
dlls/user32/user_private.h
View file @
83b66549
...
...
@@ -84,11 +84,11 @@ typedef struct tagUSER_DRIVER {
void
(
CDECL
*
pEmptyClipboard
)(
BOOL
);
/* Empty clipboard data */
void
(
CDECL
*
pEndClipboardUpdate
)(
void
);
/* End clipboard update */
UINT
(
CDECL
*
pEnumClipboardFormats
)(
UINT
);
/* Enumerate clipboard formats */
BOOL
(
CDECL
*
pGetClipboardData
)(
UINT
,
HANDLE16
*
,
HANDLE
*
);
/* Get specified selection data */
HANDLE
(
CDECL
*
pGetClipboardData
)(
UINT
);
/* Get specified selection data */
INT
(
CDECL
*
pGetClipboardFormatName
)(
UINT
,
LPWSTR
,
UINT
);
/* Get a clipboard format name */
BOOL
(
CDECL
*
pIsClipboardFormatAvailable
)(
UINT
);
/* Check if specified format is available */
UINT
(
CDECL
*
pRegisterClipboardFormat
)(
LPCWSTR
);
/* Register a clipboard format */
BOOL
(
CDECL
*
pSetClipboardData
)(
UINT
,
HANDLE
16
,
HANDLE
,
BOOL
);
/* Set specified selection data */
BOOL
(
CDECL
*
pSetClipboardData
)(
UINT
,
HANDLE
,
BOOL
);
/* Set specified selection data */
/* display modes */
LONG
(
CDECL
*
pChangeDisplaySettingsEx
)(
LPCWSTR
,
LPDEVMODEW
,
HWND
,
DWORD
,
LPVOID
);
BOOL
(
CDECL
*
pEnumDisplayMonitors
)(
HDC
,
LPRECT
,
MONITORENUMPROC
,
LPARAM
);
...
...
dlls/winex11.drv/clipboard.c
View file @
83b66549
This diff is collapsed.
Click to expand it.
dlls/winex11.drv/winex11.drv.spec
View file @
83b66549
...
...
@@ -91,7 +91,7 @@
@ cdecl EmptyClipboard(long) X11DRV_EmptyClipboard
@ cdecl EndClipboardUpdate() X11DRV_EndClipboardUpdate
@ cdecl EnumClipboardFormats(long) X11DRV_EnumClipboardFormats
@ cdecl GetClipboardData(long
ptr ptr
) X11DRV_GetClipboardData
@ cdecl GetClipboardData(long) X11DRV_GetClipboardData
@ cdecl GetClipboardFormatName(long ptr long) X11DRV_GetClipboardFormatName
@ cdecl GetDC(long long long ptr ptr long) X11DRV_GetDC
@ cdecl IsClipboardFormatAvailable(long) X11DRV_IsClipboardFormatAvailable
...
...
@@ -99,7 +99,7 @@
@ cdecl RegisterClipboardFormat(wstr) X11DRV_RegisterClipboardFormat
@ cdecl ReleaseDC(long long) X11DRV_ReleaseDC
@ cdecl ScrollDC(long long long ptr ptr long ptr) X11DRV_ScrollDC
@ cdecl SetClipboardData(long long long
long
) X11DRV_SetClipboardData
@ cdecl SetClipboardData(long long long) X11DRV_SetClipboardData
@ cdecl SetCapture(long long) X11DRV_SetCapture
@ cdecl SetFocus(long) X11DRV_SetFocus
@ cdecl SetLayeredWindowAttributes(long long long long) X11DRV_SetLayeredWindowAttributes
...
...
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