winecfg: Write-strings warnings fix
Andrew Talbot
Andrew.Talbot at talbotville.com
Thu Jul 6 13:39:43 CDT 2006
Changelog:
winecfg: Write-strings warnings fix.
diff -urN a/programs/winecfg/audio.c b/programs/winecfg/audio.c
--- a/programs/winecfg/audio.c 2006-06-06 17:42:21.000000000 +0100
+++ b/programs/winecfg/audio.c 2006-07-06 19:16:41.000000000 +0100
@@ -207,6 +207,7 @@
HIMAGELIST hImageList;
HBITMAP hBitMap;
HCURSOR old_cursor;
+ static CHAR driver_type[] = "Sound Drivers";
tree = GetDlgItem(hDlg, IDC_AUDIO_TREE);
@@ -227,7 +228,7 @@
insert.hParent = TVI_ROOT;
insert.hInsertAfter = TVI_LAST;
insert.u.item.mask = TVIF_TEXT | TVIF_CHILDREN;
- insert.u.item.pszText = "Sound Drivers";
+ insert.u.item.pszText = driver_type;
insert.u.item.cChildren = 1;
root = (HTREEITEM)SendDlgItemMessage(hDlg, IDC_AUDIO_TREE, TVM_INSERTITEM, 0, (LPARAM)&insert);
@@ -306,9 +307,11 @@
if (num_wod)
{
+ CHAR dev_type[] = "Wave Out Devices";
+
insert.hParent = driver[i];
insert.u.item.mask = TVIF_TEXT | TVIF_CHILDREN;
- insert.u.item.pszText = "Wave Out Devices";
+ insert.u.item.pszText = dev_type;
insert.u.item.cChildren = 1;
type = (HTREEITEM)SendDlgItemMessage(hDlg, IDC_AUDIO_TREE, TVM_INSERTITEM, 0, (LPARAM)&insert);
@@ -332,9 +335,11 @@
if (num_wid)
{
+ CHAR dev_type[] = "Wave In Devices";
+
insert.hParent = driver[i];
insert.u.item.mask = TVIF_TEXT | TVIF_CHILDREN;
- insert.u.item.pszText = "Wave In Devices";
+ insert.u.item.pszText = dev_type;
insert.u.item.cChildren = 1;
type = (HTREEITEM)SendDlgItemMessage(hDlg, IDC_AUDIO_TREE, TVM_INSERTITEM, 0, (LPARAM)&insert);
@@ -358,9 +363,11 @@
if (num_mod)
{
+ CHAR dev_type[] = "MIDI Out Devices";
+
insert.hParent = driver[i];
insert.u.item.mask = TVIF_TEXT | TVIF_CHILDREN;
- insert.u.item.pszText = "MIDI Out Devices";
+ insert.u.item.pszText = dev_type;
insert.u.item.cChildren = 1;
type = (HTREEITEM)SendDlgItemMessage(hDlg, IDC_AUDIO_TREE, TVM_INSERTITEM, 0, (LPARAM)&insert);
@@ -384,9 +391,11 @@
if (num_mid)
{
+ CHAR dev_type[] = "MIDI In Devices";
+
insert.hParent = driver[i];
insert.u.item.mask = TVIF_TEXT | TVIF_CHILDREN;
- insert.u.item.pszText = "MIDI In Devices";
+ insert.u.item.pszText = dev_type;
insert.u.item.cChildren = 1;
type = (HTREEITEM)SendDlgItemMessage(hDlg, IDC_AUDIO_TREE, TVM_INSERTITEM, 0, (LPARAM)&insert);
@@ -410,9 +419,11 @@
if (num_aux)
{
+ CHAR dev_type[] = "Aux Devices";
+
insert.hParent = driver[i];
insert.u.item.mask = TVIF_TEXT | TVIF_CHILDREN;
- insert.u.item.pszText = "Aux Devices";
+ insert.u.item.pszText = dev_type;
insert.u.item.cChildren = 1;
type = (HTREEITEM)SendDlgItemMessage(hDlg, IDC_AUDIO_TREE, TVM_INSERTITEM, 0, (LPARAM)&insert);
@@ -436,9 +447,11 @@
if (num_mxd)
{
+ CHAR dev_type[] = "Mixer Devices";
+
insert.hParent = driver[i];
insert.u.item.mask = TVIF_TEXT | TVIF_CHILDREN;
- insert.u.item.pszText = "Mixer Devices";
+ insert.u.item.pszText = dev_type;
insert.u.item.cChildren = 1;
type = (HTREEITEM)SendDlgItemMessage(hDlg, IDC_AUDIO_TREE, TVM_INSERTITEM, 0, (LPARAM)&insert);
More information about the wine-patches
mailing list