mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-16 21:35:25 +00:00
6888182: Readable and permitted to delete files could not be transferred through Clipboard and DnD
Reviewed-by: uta
This commit is contained in:
parent
b91701fce6
commit
5621d404bf
@ -294,7 +294,7 @@ Java_sun_awt_windows_WClipboard_publishClipboardData(JNIEnv *env,
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
@ -843,7 +843,7 @@ HRESULT __stdcall AwtDragSource::GetData(FORMATETC __RPC_FAR *pFormatEtc,
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user