projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86a58a8
)
windows fix: cliprdr_send_format_list format name
author
jcrespo-asg
<jaime.crespo@asg.com>
Wed, 11 Jan 2017 13:29:48 +0000
(14:29 +0100)
committer
jcrespo-asg
<jaime.crespo@asg.com>
Wed, 11 Jan 2017 13:29:48 +0000
(14:29 +0100)
client/Windows/wf_cliprdr.c
patch
|
blob
|
history
diff --git
a/client/Windows/wf_cliprdr.c
b/client/Windows/wf_cliprdr.c
index
8d1cfd9
..
7b2abf7
100644
(file)
--- a/
client/Windows/wf_cliprdr.c
+++ b/
client/Windows/wf_cliprdr.c
@@
-1289,9
+1289,11
@@
static UINT cliprdr_send_format_list(wfClipboard* clipboard)
for (index = 0; index < numFormats; index++)
{
- GetClipboardFormatNameA(formats[index].formatId, formatName,
- sizeof(formatName));
- formats[index].formatName = _strdup(formatName);
+ if(GetClipboardFormatNameA(formats[index].formatId, formatName,
+ sizeof(formatName)))
+ {
+ formats[index].formatName = _strdup(formatName);
+ }
}
formatList.numFormats = numFormats;