winefile: Move some self contained functions to use explicit W
functions.
Michael Stefaniuc
mstefani at redhat.de
Mon Jul 23 15:38:18 CDT 2007
---
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__
--
1.5.2.2
--
Michael Stefaniuc Tel.: +49-711-96437-199
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070723/e8a1ea3e/attachment.pgp
More information about the wine-patches
mailing list