X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=sizetip.c;h=2073a09f0d935da85f670a42b2b09e71cf46e3a2;hb=0edefb1809a783e8302ac2faf604e99729c6cda0;hp=ab709b5ba9248d0015031a1a439d78285680b9a1;hpb=3c74c01014a4a13dc8adb1f6ee02a0ccf99fd174;p=PuTTY.git diff --git a/sizetip.c b/sizetip.c index ab709b5b..2073a09f 100644 --- a/sizetip.c +++ b/sizetip.c @@ -1,10 +1,8 @@ -#include #include #include #include #include "putty.h" -#include "winstuff.h" static ATOM tip_class = 0; @@ -42,7 +40,7 @@ static LRESULT CALLBACK SizeTipWndProc(HWND hWnd, UINT nMsg, Rectangle(hdc, cr.left, cr.top, cr.right, cr.bottom); wtlen = GetWindowTextLength(hWnd); - wt = (LPTSTR) smalloc((wtlen + 1) * sizeof(TCHAR)); + wt = (LPTSTR) snewn(wtlen + 1, TCHAR); GetWindowText(hWnd, wt, wtlen + 1); SetTextColor(hdc, tip_text);