Mercurial > dwindows
changeset 1000:99907f19a703
Minor fixed and code cleanups on OS/2.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 08 May 2011 03:28:10 +0000 |
parents | 1b40686277df |
children | 4ef0e878fe06 |
files | os2/dw.c |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/os2/dw.c Sun May 08 00:47:54 2011 +0000 +++ b/os2/dw.c Sun May 08 03:28:10 2011 +0000 @@ -6369,7 +6369,6 @@ while(written < len) { int z, x = 0; - char buf[1024]; if((len - written) > 65535) amount = 65535; @@ -6408,7 +6407,7 @@ */ void API dw_mle_export(HWND handle, char *buffer, int startpoint, int length) { - PBYTE mlebuf; + PBYTE mlebuf; /* Work around 64K limit */ if(!DosAllocMem((PPVOID) &mlebuf, 65535, PAG_COMMIT | PAG_READ | PAG_WRITE | OBJ_TILE)) @@ -6521,7 +6520,6 @@ */ void API dw_mle_set_cursor(HWND handle, int point) { - point--; WinSendMsg(handle, MLM_SETSEL, MPFROMLONG(point), MPFROMLONG(point)); }