From 3fb5f8dface90d14b4719b092c09fff095f014c0 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> Date: Mon, 13 Dec 2010 00:29:12 +0000 Subject: Fixes for ANSI version git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@582 4f64403b-2f21-0410-a795-97e2b3489a10 --- yapp/popwin.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'yapp/popwin.cpp') diff --git a/yapp/popwin.cpp b/yapp/popwin.cpp index 8957dd1..cceee79 100644 --- a/yapp/popwin.cpp +++ b/yapp/popwin.cpp @@ -618,7 +618,9 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa // titlebar height if(hFontFirstLine) SelectObject(hdc, (HGDIOBJ)hFontFirstLine); - GetTextExtentPoint32W(hdc, pd->pwzTitle, (int)wcslen(pd->pwzTitle), &size); + TCHAR *title = mir_u2t(pd->pwzTitle); + GetTextExtentPoint32(hdc, title, (int)_tcslen(title), &size); + mir_free(title); pwd->tb_height = size.cy; if(options.time_layout == PT_LEFT || options.time_layout == PT_RIGHT) { if(pwd->tb_height < pwd->time_height) pwd->tb_height = pwd->time_height; -- cgit v1.2.3