# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1304825290 0 # Node ID 99907f19a7037bb145997dd0825a105ac9a72e83 # Parent 1b40686277dfe116f04ad10bce1487d0e05a762d Minor fixed and code cleanups on OS/2. diff -r 1b40686277df -r 99907f19a703 os2/dw.c --- 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)); }