Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /branches/ttcomtester/teraterm/teraterm/ftdlg_lite.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6440 - (hide annotations) (download) (as text)
Tue Jul 12 09:04:20 2016 UTC (7 years, 9 months ago) by doda
Original Path: trunk/teraterm/teraterm/clipboar.h
File MIME type: text/x-chdr
File size: 554 byte(s)
・CBStartPaste() を DDE 系とクリップボード系に分離
・DDE系の CBStartSend() と CBStartEcho() を共通化
・コメントで DataSize should be <= BuffSize とあるが実際には保証されてなく、
  ヒープを破壊する事があった事(*1)、および BuffSize を呼び出し元から指定する
  意味も無さそうなので BuffSize を廃止し、メモリの確保にも DataSize を
  使うように変更。

[*1] BuffSize は TermWidthMax(500) だが、DataSize は MaxStrLen(512) まで
     大きくなる為、500バイト以上のデータを send するとバッファオーバランで
     ヒープが壊れる
1 maya 3227 /* Tera Term
2     Copyright(C) 1994-1998 T. Teranishi
3     All rights reserved. */
4    
5     /* TERATERM.EXE, Clipboard routines */
6    
7     #ifdef __cplusplus
8     extern "C" {
9     #endif
10    
11     /* prototypes */
12     PCHAR CBOpen(LONG MemSize);
13     void CBClose();
14 doda 6440 void CBStartSend(PCHAR DataPtr, int DataSize, BOOL EchoOnly);
15     void CBStartPaste(HWND HWin, BOOL AddCR, BOOL Bracketed);
16 doda 4769 void CBStartPasteB64(HWND HWin, PCHAR header, PCHAR footer);
17 maya 3227 void CBSend();
18 doda 3974 void CBEcho();
19 maya 3227 void CBEndPaste();
20 doda 4260 int CBStartPasteConfirmChange(HWND HWin, BOOL AddCR);
21 maya 3227
22     #ifdef __cplusplus
23     }
24     #endif

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26