Mercurial > dwindows
changeset 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 | f26eced21a30 |
files | makefile.vac os2/dw.c |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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;