From cee98d2969099851a74c5436250a85c458e3204d Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Mon, 23 Jul 2007 22:38:18 +0200 Subject: [PATCH] winefile: Move some self contained functions to use explicit W functions. --- programs/winefile/winefile.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/programs/winefile/winefile.c b/programs/winefile/winefile.c index 59d1717dc51..85a169f2723 100644 --- a/programs/winefile/winefile.c +++ b/programs/winefile/winefile.c @@ -245,28 +245,28 @@ static void display_network_error(HWND hwnd) static VOID WineLicense(HWND Wnd) { - TCHAR cap[20], text[1024]; - LoadString(Globals.hInstance, IDS_LICENSE, text, 1024); - LoadString(Globals.hInstance, IDS_LICENSE_CAPTION, cap, 20); - MessageBox(Wnd, text, cap, MB_ICONINFORMATION | MB_OK); + WCHAR cap[20], text[1024]; + LoadStringW(Globals.hInstance, IDS_LICENSE, text, 1024); + LoadStringW(Globals.hInstance, IDS_LICENSE_CAPTION, cap, 20); + MessageBoxW(Wnd, text, cap, MB_ICONINFORMATION | MB_OK); } static VOID WineWarranty(HWND Wnd) { - TCHAR cap[20], text[1024]; - LoadString(Globals.hInstance, IDS_WARRANTY, text, 1024); - LoadString(Globals.hInstance, IDS_WARRANTY_CAPTION, cap, 20); - MessageBox(Wnd, text, cap, MB_ICONEXCLAMATION | MB_OK); + WCHAR cap[20], text[1024]; + LoadStringW(Globals.hInstance, IDS_WARRANTY, text, 1024); + LoadStringW(Globals.hInstance, IDS_WARRANTY_CAPTION, cap, 20); + MessageBoxW(Wnd, text, cap, MB_ICONEXCLAMATION | MB_OK); } static inline BOOL get_check(HWND hwnd, INT id) { - return BST_CHECKED&SendMessage(GetDlgItem(hwnd, id), BM_GETSTATE, 0, 0); + return BST_CHECKED&SendMessageW(GetDlgItem(hwnd, id), BM_GETSTATE, 0, 0); } static inline INT set_check(HWND hwnd, INT id, BOOL on) { - return SendMessage(GetDlgItem(hwnd, id), BM_SETCHECK, on?BST_CHECKED:BST_UNCHECKED, 0); + return SendMessageW(GetDlgItem(hwnd, id), BM_SETCHECK, on?BST_CHECKED:BST_UNCHECKED, 0); } #ifdef __WINE__