# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 994973233 0 # Node ID ca7a8215487aad591b7aab11347d7b8ae7636c5b # Parent 81833f25b1aa450bc278487111e07a9a3f8cebf4 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. diff -r 81833f25b1aa -r ca7a8215487a makefile.vac --- a/makefile.vac Thu Jul 12 20:31:26 2001 +0000 +++ b/makefile.vac Thu Jul 12 21:27:13 2001 +0000 @@ -5,7 +5,7 @@ .\dwcompat.dll .c.obj: - icc.exe /DOS2 /DTCPV40HDRS /DBUILD_DLL /I. /I..\..\include /Tdc /Sp1 /Ss /Wprorearet /Wpro+ /V"Dynamic Windows Compatibility" /Ti /Gm /Gd- /G5 /Ge- /C /W3 /Wini+ /Wpar+ /Wpro+ /Wuse+ %s + icc.exe /DOS2 /DTCPV40HDRS /DBUILD_DLL /I. /I..\..\include /Tdc /Ss /Wprorearet /Wpro+ /V"Dynamic Windows Compatibility" /Ti /Gm /Gd- /G5 /Ge- /C /W3 /Wini+ /Wpar+ /Wpro+ /Wuse+ %s .\dw.dll: \ .\os2\dw.obj diff -r 81833f25b1aa -r ca7a8215487a os2/dw.c --- 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;