projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
AES should have accelerator s, not a, to avoid a clash
[u/mdw/putty]
/
sizetip.c
diff --git
a/sizetip.c
b/sizetip.c
index
439d88c
..
8a37b47
100644
(file)
--- a/
sizetip.c
+++ b/
sizetip.c
@@
-1,11
+1,4
@@
#include <windows.h>
#include <windows.h>
-#ifndef AUTO_WINSOCK
-#ifdef WINSOCK_TWO
-#include <winsock2.h>
-#else
-#include <winsock.h>
-#endif
-#endif
#include <winreg.h>
#include <tchar.h>
#include <stdio.h>
#include <winreg.h>
#include <tchar.h>
#include <stdio.h>
@@
-50,7
+43,7
@@
static LRESULT CALLBACK SizeTipWndProc(HWND hWnd, UINT nMsg,
Rectangle(hdc, cr.left, cr.top, cr.right, cr.bottom);
wtlen = GetWindowTextLength(hWnd);
Rectangle(hdc, cr.left, cr.top, cr.right, cr.bottom);
wtlen = GetWindowTextLength(hWnd);
- wt = (LPTSTR)malloc((wtlen+1)*sizeof(TCHAR));
+ wt = (LPTSTR)
s
malloc((wtlen+1)*sizeof(TCHAR));
GetWindowText(hWnd, wt, wtlen+1);
SetTextColor(hdc, tip_text);
GetWindowText(hWnd, wt, wtlen+1);
SetTextColor(hdc, tip_text);
@@
-58,7
+51,7
@@
static LRESULT CALLBACK SizeTipWndProc(HWND hWnd, UINT nMsg,
TextOut(hdc, cr.left+3, cr.top+3, wt, wtlen);
TextOut(hdc, cr.left+3, cr.top+3, wt, wtlen);
- free(wt);
+
s
free(wt);
SelectObject(hdc, holdbr);
DeleteObject(hbr);
SelectObject(hdc, holdbr);
DeleteObject(hbr);