projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix various trivial compiler warnings
[u/mdw/putty]
/
sizetip.c
diff --git
a/sizetip.c
b/sizetip.c
index
10bdee5
..
8a37b47
100644
(file)
--- a/
sizetip.c
+++ b/
sizetip.c
@@
-43,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);
@@
-51,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);