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
469a2ce5
Commit
469a2ce5
authored
May 27, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Don't share debugstr_format between dragdrop.c and clipboard.c.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
parent
dd3d988e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
2 deletions
+41
-2
clipboard.c
dlls/winemac.drv/clipboard.c
+1
-1
dragdrop.c
dlls/winemac.drv/dragdrop.c
+40
-0
macdrv.h
dlls/winemac.drv/macdrv.h
+0
-1
No files found.
dlls/winemac.drv/clipboard.c
View file @
469a2ce5
...
...
@@ -210,7 +210,7 @@ static unsigned int nb_current_mac_formats;
/**************************************************************************
* debugstr_format
*/
const
char
*
debugstr_format
(
UINT
id
)
static
const
char
*
debugstr_format
(
UINT
id
)
{
WCHAR
buffer
[
256
];
...
...
dlls/winemac.drv/dragdrop.c
View file @
469a2ce5
...
...
@@ -46,6 +46,46 @@ typedef struct
}
DragDropDataObject
;
/**************************************************************************
* debugstr_format
*/
static
const
char
*
debugstr_format
(
UINT
id
)
{
WCHAR
buffer
[
256
];
if
(
GetClipboardFormatNameW
(
id
,
buffer
,
256
))
return
wine_dbg_sprintf
(
"0x%04x %s"
,
id
,
debugstr_w
(
buffer
));
switch
(
id
)
{
#define BUILTIN(id) case id: return #id;
BUILTIN
(
CF_TEXT
)
BUILTIN
(
CF_BITMAP
)
BUILTIN
(
CF_METAFILEPICT
)
BUILTIN
(
CF_SYLK
)
BUILTIN
(
CF_DIF
)
BUILTIN
(
CF_TIFF
)
BUILTIN
(
CF_OEMTEXT
)
BUILTIN
(
CF_DIB
)
BUILTIN
(
CF_PALETTE
)
BUILTIN
(
CF_PENDATA
)
BUILTIN
(
CF_RIFF
)
BUILTIN
(
CF_WAVE
)
BUILTIN
(
CF_UNICODETEXT
)
BUILTIN
(
CF_ENHMETAFILE
)
BUILTIN
(
CF_HDROP
)
BUILTIN
(
CF_LOCALE
)
BUILTIN
(
CF_DIBV5
)
BUILTIN
(
CF_OWNERDISPLAY
)
BUILTIN
(
CF_DSPTEXT
)
BUILTIN
(
CF_DSPBITMAP
)
BUILTIN
(
CF_DSPMETAFILEPICT
)
BUILTIN
(
CF_DSPENHMETAFILE
)
#undef BUILTIN
default:
return
wine_dbg_sprintf
(
"0x%04x"
,
id
);
}
}
static
inline
DragDropDataObject
*
impl_from_IDataObject
(
IDataObject
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
DragDropDataObject
,
IDataObject_iface
);
...
...
dlls/winemac.drv/macdrv.h
View file @
469a2ce5
...
...
@@ -255,7 +255,6 @@ extern void macdrv_displays_changed(const macdrv_event *event) DECLSPEC_HIDDEN;
extern
void
macdrv_UpdateClipboard
(
void
)
DECLSPEC_HIDDEN
;
extern
BOOL
query_pasteboard_data
(
HWND
hwnd
,
CFStringRef
type
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_lost_pasteboard_ownership
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
const
char
*
debugstr_format
(
UINT
id
)
DECLSPEC_HIDDEN
;
extern
HANDLE
macdrv_get_pasteboard_data
(
CFTypeRef
pasteboard
,
UINT
desired_format
)
DECLSPEC_HIDDEN
;
extern
BOOL
macdrv_pasteboard_has_format
(
CFTypeRef
pasteboard
,
UINT
desired_format
)
DECLSPEC_HIDDEN
;
extern
UINT
*
macdrv_get_pasteboard_formats
(
CFTypeRef
pasteboard
,
UINT
*
num_formats
)
DECLSPEC_HIDDEN
;
...
...
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