projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
The WinSock library is now loaded at run-time, which means we can
[u/mdw/putty]
/
sizetip.c
diff --git
a/sizetip.c
b/sizetip.c
index
c883211
..
2073a09
100644
(file)
--- a/
sizetip.c
+++ b/
sizetip.c
@@
-1,11
+1,8
@@
-#include <windows.h>
-#include <winreg.h>
-#include <tchar.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
+#include <tchar.h>
#include "putty.h"
#include "putty.h"
-#include "winstuff.h"
static ATOM tip_class = 0;
static ATOM tip_class = 0;
@@
-43,7
+40,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) s
malloc((wtlen + 1) * sizeof(TCHAR)
);
+ wt = (LPTSTR) s
newn(wtlen + 1, TCHAR
);
GetWindowText(hWnd, wt, wtlen + 1);
SetTextColor(hdc, tip_text);
GetWindowText(hWnd, wt, wtlen + 1);
SetTextColor(hdc, tip_text);