X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/dc3c8261f1530c7926d4fded06a7ee58ec010b73..a5dd84675905dfc4274cf45424e6f3a9e385e1a7:/sizetip.c 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);