#include <windows.h>
-#include <winreg.h>
-#include <tchar.h>
#include <stdio.h>
#include <stdlib.h>
+#include <tchar.h>
#include "putty.h"
#include "winstuff.h"
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);