changeset 4313:673aa770a062

6888182: Readable and permitted to delete files could not be transferred through Clipboard and DnD Reviewed-by: uta
author denis
date Mon, 25 Apr 2011 20:39:35 +0400
parents c9ddd8e0af54
children 16f52939fa41
files src/windows/native/sun/windows/awt_Clipboard.cpp src/windows/native/sun/windows/awt_DnDDS.cpp
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/windows/native/sun/windows/awt_Clipboard.cpp	Mon Apr 25 21:08:14 2011 +0400
+++ b/src/windows/native/sun/windows/awt_Clipboard.cpp	Mon Apr 25 20:39:35 2011 +0400
@@ -294,7 +294,7 @@
     if (format == CF_HDROP) {
         DROPFILES *dropfiles = (DROPFILES *)dataout;
         dropfiles->pFiles = sizeof(DROPFILES);
-        dropfiles->fWide = FALSE; // good guess!
+        dropfiles->fWide = TRUE; // we publish only Unicode
         dataout += sizeof(DROPFILES);
     }
 
--- a/src/windows/native/sun/windows/awt_DnDDS.cpp	Mon Apr 25 21:08:14 2011 +0400
+++ b/src/windows/native/sun/windows/awt_DnDDS.cpp	Mon Apr 25 20:39:35 2011 +0400
@@ -843,7 +843,7 @@
             dropfiles->pt.x = m_dropPoint.x;
             dropfiles->pt.y = m_dropPoint.y;
             dropfiles->fNC = m_fNC;
-            dropfiles->fWide = TRUE; // good guess!
+            dropfiles->fWide = TRUE; // we publish only Unicode
             dataout += sizeof(DROPFILES);
         }