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
7e2a7c94
Commit
7e2a7c94
authored
Jan 11, 2005
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 11, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of W->A calls.
parent
8032418e
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
19 deletions
+25
-19
user_private.h
dlls/user/user_private.h
+2
-2
clipboard.c
dlls/x11drv/clipboard.c
+0
-0
x11drv.h
dlls/x11drv/x11drv.h
+1
-1
clipboard.c
windows/clipboard.c
+22
-16
No files found.
dlls/user/user_private.h
View file @
7e2a7c94
...
...
@@ -87,9 +87,9 @@ typedef struct tagUSER_DRIVER {
BOOL
(
*
pEndClipboardUpdate
)(
void
);
/* End clipboard update */
BOOL
(
*
pEnumClipboardFormats
)(
UINT
);
/* Enumerate clipboard formats */
BOOL
(
*
pGetClipboardData
)(
UINT
,
HANDLE16
*
,
HANDLE
*
);
/* Get specified selection data */
BOOL
(
*
pGetClipboardFormatName
)(
UINT
,
LP
STR
,
UINT
);
/* Get a clipboard format name */
BOOL
(
*
pGetClipboardFormatName
)(
UINT
,
LP
WSTR
,
UINT
);
/* Get a clipboard format name */
BOOL
(
*
pIsClipboardFormatAvailable
)(
UINT
);
/* Check if specified format is available */
INT
(
*
pRegisterClipboardFormat
)(
LPC
STR
);
/* Register a clipboard format */
INT
(
*
pRegisterClipboardFormat
)(
LPC
WSTR
);
/* Register a clipboard format */
void
(
*
pResetSelectionOwner
)(
HWND
,
BOOL
);
BOOL
(
*
pSetClipboardData
)(
UINT
,
HANDLE16
,
HANDLE
,
BOOL
);
/* Set specified selection data */
/* display modes */
...
...
dlls/x11drv/clipboard.c
View file @
7e2a7c94
This diff is collapsed.
Click to expand it.
dlls/x11drv/x11drv.h
View file @
7e2a7c94
...
...
@@ -469,7 +469,7 @@ typedef HANDLE (*DRVIMPORTFUNC)(LPBYTE hData, UINT cBytes);
typedef
struct
tagWINE_CLIPFORMAT
{
UINT
wFormatID
;
LP
STR
Name
;
LP
CWSTR
Name
;
UINT
drvData
;
UINT
wFlags
;
DRVIMPORTFUNC
lpDrvImportFunc
;
...
...
windows/clipboard.c
View file @
7e2a7c94
...
...
@@ -48,7 +48,6 @@
#include "winerror.h"
#include "wine/winuser16.h"
#include "wine/winbase16.h"
#include "heap.h"
#include "user_private.h"
#include "win.h"
...
...
@@ -225,13 +224,13 @@ static BOOL CLIPBOARD_CloseClipboard(void)
**************************************************************************/
/**************************************************************************
* RegisterClipboardFormat
A
(USER32.@)
* RegisterClipboardFormat
W
(USER32.@)
*/
UINT
WINAPI
RegisterClipboardFormat
A
(
LPC
STR
FormatName
)
UINT
WINAPI
RegisterClipboardFormat
W
(
LPCW
STR
FormatName
)
{
UINT
wFormatID
=
0
;
TRACE
(
"%s
\n
"
,
debugstr_
a
(
FormatName
));
TRACE
(
"%s
\n
"
,
debugstr_
w
(
FormatName
));
if
(
USER_Driver
.
pRegisterClipboardFormat
)
wFormatID
=
USER_Driver
.
pRegisterClipboardFormat
(
FormatName
);
...
...
@@ -241,21 +240,28 @@ UINT WINAPI RegisterClipboardFormatA(LPCSTR FormatName)
/**************************************************************************
* RegisterClipboardFormat
W
(USER32.@)
* RegisterClipboardFormat
A
(USER32.@)
*/
UINT
WINAPI
RegisterClipboardFormat
W
(
LPCW
STR
formatName
)
UINT
WINAPI
RegisterClipboardFormat
A
(
LPC
STR
formatName
)
{
LPSTR
aFormat
=
HEAP_strdupWtoA
(
GetProcessHeap
(),
0
,
formatName
);
UINT
ret
=
RegisterClipboardFormatA
(
aFormat
);
HeapFree
(
GetProcessHeap
(),
0
,
aFormat
);
int
len
;
LPWSTR
wFormat
;
UINT
ret
;
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
formatName
,
-
1
,
NULL
,
0
);
wFormat
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
formatName
,
-
1
,
wFormat
,
len
);
ret
=
RegisterClipboardFormatW
(
wFormat
);
HeapFree
(
GetProcessHeap
(),
0
,
wFormat
);
return
ret
;
}
/**************************************************************************
* GetClipboardFormatName
A
(USER32.@)
* GetClipboardFormatName
W
(USER32.@)
*/
INT
WINAPI
GetClipboardFormatName
A
(
UINT
wFormat
,
LP
STR
retStr
,
INT
maxlen
)
INT
WINAPI
GetClipboardFormatName
W
(
UINT
wFormat
,
LPW
STR
retStr
,
INT
maxlen
)
{
INT
len
=
0
;
...
...
@@ -269,17 +275,17 @@ INT WINAPI GetClipboardFormatNameA(UINT wFormat, LPSTR retStr, INT maxlen)
/**************************************************************************
* GetClipboardFormatName
W
(USER32.@)
* GetClipboardFormatName
A
(USER32.@)
*/
INT
WINAPI
GetClipboardFormatName
W
(
UINT
wFormat
,
LPW
STR
retStr
,
INT
maxlen
)
INT
WINAPI
GetClipboardFormatName
A
(
UINT
wFormat
,
LP
STR
retStr
,
INT
maxlen
)
{
INT
ret
;
LP
STR
p
=
HeapAlloc
(
GetProcessHeap
(),
0
,
maxlen
);
LP
WSTR
p
=
HeapAlloc
(
GetProcessHeap
(),
0
,
maxlen
*
sizeof
(
WCHAR
)
);
if
(
p
==
NULL
)
return
0
;
/* FIXME: is this the correct failure value? */
ret
=
GetClipboardFormatName
A
(
wFormat
,
p
,
maxlen
);
ret
=
GetClipboardFormatName
W
(
wFormat
,
p
,
maxlen
);
if
(
maxlen
>
0
&&
!
MultiByteToWideChar
(
CP_ACP
,
0
,
p
,
-
1
,
retStr
,
maxlen
))
if
(
maxlen
>
0
&&
!
WideCharToMultiByte
(
CP_ACP
,
0
,
p
,
-
1
,
retStr
,
maxlen
,
0
,
0
))
retStr
[
maxlen
-
1
]
=
0
;
HeapFree
(
GetProcessHeap
(),
0
,
p
);
return
ret
;
...
...
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