6888182: Readable and permitted to delete files could not be transferred through Clipboard and DnD
authordenis
Mon, 25 Apr 2011 20:39:35 +0400
changeset 9474 74b4224cdbda
parent 9473 2b8b1dd73192
child 9475 abbee6a5fcef
6888182: Readable and permitted to delete files could not be transferred through Clipboard and DnD Reviewed-by: uta
jdk/src/windows/native/sun/windows/awt_Clipboard.cpp
jdk/src/windows/native/sun/windows/awt_DnDDS.cpp
--- a/jdk/src/windows/native/sun/windows/awt_Clipboard.cpp	Mon Apr 25 21:08:14 2011 +0400
+++ b/jdk/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/jdk/src/windows/native/sun/windows/awt_DnDDS.cpp	Mon Apr 25 21:08:14 2011 +0400
+++ b/jdk/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);
         }