diff os2/dw.c @ 16:ca7a8215487a

Removed structure packing option to fix a crash in dw_mle_search() when built as a DLL. Also added dw_mle_set_word_wrap() functionality on OS/2.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 12 Jul 2001 21:27:13 +0000
parents 81833f25b1aa
children f1002d51d959
line wrap: on
line diff
--- a/os2/dw.c	Thu Jul 12 20:31:26 2001 +0000
+++ b/os2/dw.c	Thu Jul 12 21:27:13 2001 +0000
@@ -3932,6 +3932,7 @@
  */
 void dw_mle_set_word_wrap(HWND handle, int state)
 {
+	WinSendMsg(handle, MLM_SETWRAP, MPFROMLONG(state), 0);
 }
 
 /*
@@ -3957,6 +3958,9 @@
 {
 	MLE_SEARCHDATA msd;
 
+	/* This code breaks with structure packing set to 1 (/Sp1 in VAC)
+	 * if this is needed we need to add a pragma here.
+	 */
 	msd.cb = sizeof(msd);
 	msd.pchFind = text;
 	msd.pchReplace = NULL;