From 618709d21d51fe3230bbdd969ce5c5c5a1bcb395 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Sun, 27 Apr 2008 22:34:13 +0200 Subject: [PATCH] winecfg: Transform the set_advanced() driveui function to unicode. --- programs/winecfg/driveui.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/programs/winecfg/driveui.c b/programs/winecfg/driveui.c index 9d9e42049b7..8c313c1c4e8 100644 --- a/programs/winecfg/driveui.c +++ b/programs/winecfg/driveui.c @@ -118,18 +118,18 @@ static void lv_get_item(HWND dialog, LVITEM *item) static void set_advanced(HWND dialog) { int state; - char text[256]; + WCHAR text[256]; RECT rect; if (advanced) { state = SW_NORMAL; - LoadString(GetModuleHandle(NULL), IDS_HIDE_ADVANCED, text, 256); + LoadStringW(GetModuleHandle(NULL), IDS_HIDE_ADVANCED, text, 256); } else { state = SW_HIDE; - LoadString(GetModuleHandle(NULL), IDS_SHOW_ADVANCED, text, 256); + LoadStringW(GetModuleHandle(NULL), IDS_SHOW_ADVANCED, text, 256); } ShowWindow(GetDlgItem(dialog, IDC_RADIO_AUTODETECT), state); @@ -145,7 +145,7 @@ static void set_advanced(HWND dialog) ShowWindow(GetDlgItem(dialog, IDC_STATIC_TYPE), state); /* update the button text based on the state */ - SetWindowText(GetDlgItem(dialog, IDC_BUTTON_SHOW_HIDE_ADVANCED), text); + SetWindowTextW(GetDlgItem(dialog, IDC_BUTTON_SHOW_HIDE_ADVANCED), text); /* redraw for the etched line */ get_etched_rect(dialog, &rect);