winecfg: Remove variable lRes which is not really used from configureAudioDriver.

Gerald Pfeifer gerald at pfeifer.com
Thu May 13 20:03:36 CDT 2010


If someone wants to add a check at one point, that can be done as
above, no need for a special variable here.

Gerald
---
 programs/winecfg/audio.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/programs/winecfg/audio.c b/programs/winecfg/audio.c
index 9f8a0a2..5cf2b34 100644
--- a/programs/winecfg/audio.c
+++ b/programs/winecfg/audio.c
@@ -124,11 +124,10 @@ static void configureAudioDriver(HWND hDlg)
             if (SendDriverMessage(hdrvr, DRV_QUERYCONFIGURE, 0, 0) != 0)
             {
                 DRVCONFIGINFO dci;
-                LONG lRes;
                 dci.dwDCISize = sizeof (dci);
                 dci.lpszDCISectionName = NULL;
                 dci.lpszDCIAliasName = NULL;
-                lRes = SendDriverMessage(hdrvr, DRV_CONFIGURE, 0, (LONG_PTR)&dci);
+                SendDriverMessage(hdrvr, DRV_CONFIGURE, 0, (LONG_PTR)&dci);
             }
             CloseDriver(hdrvr, 0, 0);
         }
-- 
1.6.6.2



More information about the wine-patches mailing list