Skip to content

Commit

Permalink
Fix last change.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eli-Zaretskii committed Feb 3, 1999
1 parent 3bcc00b commit 1c1774d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/w16select.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -497,14 +496,15 @@ 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 ())
goto error;

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)
Expand Down

0 comments on commit 1c1774d

Please sign in to comment.