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
039ae272
Commit
039ae272
authored
Feb 12, 2001
by
Aric Stewart
Committed by
Alexandre Julliard
Feb 12, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If an application directly calls SetClipboardData with CF_TEXT and
then later called GetClipboardData with CF_TEXT we gave them a NULL because we where not handling this case.
parent
bf60453c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
12 deletions
+30
-12
clipboard.c
windows/clipboard.c
+30
-12
No files found.
windows/clipboard.c
View file @
039ae272
...
...
@@ -495,11 +495,17 @@ static LPWINE_CLIPFORMAT CLIPBOARD_RenderText( UINT wFormat )
LPWINE_CLIPFORMAT
lpTarget
=
NULL
;
BOOL
foundData
=
FALSE
;
/* Asked for CF_TEXT but not available - always attempt to convert
from CF_UNICODETEXT or CF_OEMTEXT */
if
(
wFormat
==
CF_TEXT
&&
!
ClipFormats
[
CF_TEXT
-
1
].
wDataPresent
)
/* Asked for CF_TEXT */
if
(
wFormat
==
CF_TEXT
)
{
if
(
ClipFormats
[
CF_UNICODETEXT
-
1
].
wDataPresent
)
if
(
ClipFormats
[
CF_TEXT
-
1
].
wDataPresent
)
{
lpSource
=
&
ClipFormats
[
CF_TEXT
-
1
];
lpTarget
=
&
ClipFormats
[
CF_TEXT
-
1
];
foundData
=
TRUE
;
TRACE
(
"
\t
TEXT -> TEXT
\n
"
);
}
else
if
(
ClipFormats
[
CF_UNICODETEXT
-
1
].
wDataPresent
)
{
/* Convert UNICODETEXT -> TEXT */
lpSource
=
&
ClipFormats
[
CF_UNICODETEXT
-
1
];
...
...
@@ -516,11 +522,17 @@ static LPWINE_CLIPFORMAT CLIPBOARD_RenderText( UINT wFormat )
TRACE
(
"
\t
OEMTEXT -> TEXT
\n
"
);
}
}
/* Asked for CF_OEMTEXT but not available - always attempt to convert
from CF_UNICODETEXT or CF_TEXT */
else
if
(
wFormat
==
CF_OEMTEXT
&&
!
ClipFormats
[
CF_OEMTEXT
-
1
].
wDataPresent
)
/* Asked for CF_OEMTEXT */
else
if
(
wFormat
==
CF_OEMTEXT
)
{
if
(
ClipFormats
[
CF_UNICODETEXT
-
1
].
wDataPresent
)
if
(
ClipFormats
[
CF_OEMTEXT
-
1
].
wDataPresent
)
{
lpSource
=
&
ClipFormats
[
CF_OEMTEXT
-
1
];
lpTarget
=
&
ClipFormats
[
CF_OEMTEXT
-
1
];
foundData
=
TRUE
;
TRACE
(
"
\t
OEMTEXT -> OEMTEXT
\n
"
);
}
else
if
(
ClipFormats
[
CF_UNICODETEXT
-
1
].
wDataPresent
)
{
/* Convert UNICODETEXT -> OEMTEXT */
lpSource
=
&
ClipFormats
[
CF_UNICODETEXT
-
1
];
...
...
@@ -537,11 +549,17 @@ static LPWINE_CLIPFORMAT CLIPBOARD_RenderText( UINT wFormat )
TRACE
(
"
\t
TEXT -> OEMTEXT
\n
"
);
}
}
/* Asked for CF_UNICODETEXT but not available - always attempt to convert
from CF_TEXT or CF_OEMTEXT */
else
if
(
wFormat
==
CF_UNICODETEXT
&&
!
ClipFormats
[
CF_UNICODETEXT
-
1
].
wDataPresent
)
/* Asked for CF_UNICODETEXT */
else
if
(
wFormat
==
CF_UNICODETEXT
)
{
if
(
ClipFormats
[
CF_TEXT
-
1
].
wDataPresent
)
if
(
ClipFormats
[
CF_UNICODETEXT
-
1
].
wDataPresent
)
{
lpSource
=
&
ClipFormats
[
CF_UNICODETEXT
-
1
];
lpTarget
=
&
ClipFormats
[
CF_UNICODETEXT
-
1
];
foundData
=
TRUE
;
TRACE
(
"
\t
UNICODETEXT -> UNICODETEXT
\n
"
);
}
else
if
(
ClipFormats
[
CF_TEXT
-
1
].
wDataPresent
)
{
/* Convert TEXT -> UNICODETEXT */
lpSource
=
&
ClipFormats
[
CF_TEXT
-
1
];
...
...
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