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
aa536031
Commit
aa536031
authored
Nov 06, 2013
by
Ken Thomases
Committed by
Alexandre Julliard
Nov 06, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Reduce duplicated code by consolidating exit paths from format_for_type().
parent
7c0c30b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
clipboard.c
dlls/winemac.drv/clipboard.c
+3
-5
No files found.
dlls/winemac.drv/clipboard.c
View file @
aa536031
...
@@ -361,10 +361,7 @@ static WINE_CLIPFORMAT* format_for_type(WINE_CLIPFORMAT *current, CFStringRef ty
...
@@ -361,10 +361,7 @@ static WINE_CLIPFORMAT* format_for_type(WINE_CLIPFORMAT *current, CFStringRef ty
{
{
format
=
LIST_ENTRY
(
ptr
,
WINE_CLIPFORMAT
,
entry
);
format
=
LIST_ENTRY
(
ptr
,
WINE_CLIPFORMAT
,
entry
);
if
(
CFEqual
(
format
->
type
,
type
))
if
(
CFEqual
(
format
->
type
,
type
))
{
goto
done
;
TRACE
(
" -> %p/%s
\n
"
,
format
,
debugstr_format
(
format
->
format_id
));
return
format
;
}
}
}
format
=
NULL
;
format
=
NULL
;
...
@@ -376,7 +373,7 @@ static WINE_CLIPFORMAT* format_for_type(WINE_CLIPFORMAT *current, CFStringRef ty
...
@@ -376,7 +373,7 @@ static WINE_CLIPFORMAT* format_for_type(WINE_CLIPFORMAT *current, CFStringRef ty
{
{
ERR
(
"Shouldn't happen. Built-in type %s should have matched something in format list.
\n
"
,
ERR
(
"Shouldn't happen. Built-in type %s should have matched something in format list.
\n
"
,
debugstr_cf
(
type
));
debugstr_cf
(
type
));
return
NULL
;
goto
done
;
}
}
else
if
(
CFStringHasPrefix
(
type
,
registered_name_type_prefix
))
else
if
(
CFStringHasPrefix
(
type
,
registered_name_type_prefix
))
{
{
...
@@ -403,6 +400,7 @@ static WINE_CLIPFORMAT* format_for_type(WINE_CLIPFORMAT *current, CFStringRef ty
...
@@ -403,6 +400,7 @@ static WINE_CLIPFORMAT* format_for_type(WINE_CLIPFORMAT *current, CFStringRef ty
HeapFree
(
GetProcessHeap
(),
0
,
name
);
HeapFree
(
GetProcessHeap
(),
0
,
name
);
}
}
done:
TRACE
(
" -> %p/%s
\n
"
,
format
,
debugstr_format
(
format
?
format
->
format_id
:
0
));
TRACE
(
" -> %p/%s
\n
"
,
format
,
debugstr_format
(
format
?
format
->
format_id
:
0
));
return
format
;
return
format
;
}
}
...
...
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