Commit ba92a470 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

Fix last change.

parent c7594627
......@@ -475,7 +475,6 @@ DEFUN ("w16-set-clipboard-data", Fw16_set_clipboard_data, Sw16_set_clipboard_dat
/* No multibyte character in OBJ. We need not encode it, but we
will have to convert it to DOS CR-LF style. */
no_crlf_conversion = 0;
dst = src;
}
else
{
......@@ -497,6 +496,7 @@ DEFUN ("w16-set-clipboard-data", Fw16_set_clipboard_data, Sw16_set_clipboard_dat
encode_coding (&coding, src, dst, nbytes, bufsize);
no_crlf_conversion = 1;
nbytes = coding.produced;
src = dst;
}
if (!open_clipboard ())
......@@ -504,7 +504,7 @@ DEFUN ("w16-set-clipboard-data", Fw16_set_clipboard_data, Sw16_set_clipboard_dat
ok = empty_clipboard ()
&& ((put_status
= set_clipboard_data (CF_OEMTEXT, dst, nbytes, no_crlf_conversion))
= set_clipboard_data (CF_OEMTEXT, src, nbytes, no_crlf_conversion))
== 0);
if (!no_crlf_conversion)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment