Michael Stefaniuc : winefile: Move some self contained functions to use explicit W functions.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Jul 24 07:06:08 CDT 2007


Module: wine
Branch: master
Commit: cee98d2969099851a74c5436250a85c458e3204d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=cee98d2969099851a74c5436250a85c458e3204d

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Mon Jul 23 22:38:18 2007 +0200

winefile: Move some self contained functions to use explicit W functions.

---

 programs/winefile/winefile.c |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/programs/winefile/winefile.c b/programs/winefile/winefile.c
index 59d1717..85a169f 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__




More information about the wine-cvs mailing list