winecfg: Transform the set_advanced() driveui function to unicode.

Michael Stefaniuc mstefani at redhat.de
Sun Apr 27 15:34:13 CDT 2008


This fixes the Romanian translation for the "Show/Hide Advanced" button.
---
 programs/winecfg/driveui.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/programs/winecfg/driveui.c b/programs/winecfg/driveui.c
index 9d9e420..8c313c1 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);
-- 
1.5.5
-------------- 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/20080427/0b468190/attachment.pgp 


More information about the wine-patches mailing list