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
cba4bcb4
Commit
cba4bcb4
authored
Apr 08, 2013
by
Ken Thomases
Committed by
Alexandre Julliard
Apr 09, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Handle failure to get clipboard format name; don't use uninitialized buffer.
parent
77ed56cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
clipboard.c
dlls/winemac.drv/clipboard.c
+7
-1
No files found.
dlls/winemac.drv/clipboard.c
View file @
cba4bcb4
...
...
@@ -292,7 +292,13 @@ static WINE_CLIPFORMAT *insert_clipboard_format(UINT id, CFStringRef type)
{
WCHAR
buffer
[
256
];
GetClipboardFormatNameW
(
format
->
format_id
,
buffer
,
256
);
if
(
!
GetClipboardFormatNameW
(
format
->
format_id
,
buffer
,
sizeof
(
buffer
)
/
sizeof
(
buffer
[
0
])))
{
WARN
(
"failed to get name for format %s; error 0x%08x
\n
"
,
debugstr_format
(
format
->
format_id
),
GetLastError
());
HeapFree
(
GetProcessHeap
(),
0
,
format
);
return
NULL
;
}
if
(
!
strncmpW
(
buffer
,
mac_type_name_prefix
,
strlenW
(
mac_type_name_prefix
)))
{
const
WCHAR
*
p
=
buffer
+
strlenW
(
mac_type_name_prefix
);
...
...
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