[DSOUND] dsdriver typo fix and nameless struct fix

Robert Reif reif at earthlink.net
Fri Jan 28 07:42:25 CST 2005


Fix structure member name to match windows headers and fix up all uses.
Nameless struct fix for dsound/propset.c to compile on both windows and 
wine.
-------------- next part --------------
Index: dlls/dsound/capture.c
===================================================================
RCS file: /home/wine/wine/dlls/dsound/capture.c,v
retrieving revision 1.42
diff -p -u -r1.42 capture.c
--- dlls/dsound/capture.c	24 Jan 2005 13:31:27 -0000	1.42
+++ dlls/dsound/capture.c	28 Jan 2005 13:11:16 -0000
@@ -190,8 +190,8 @@ DirectSoundCaptureEnumerateA(
                     err = mmErr(waveInMessage((HWAVEIN)wid,DRV_QUERYDSOUNDDESC,(DWORD)&desc,0));
                     if (err == DS_OK) {
                         TRACE("calling lpDSEnumCallback(NULL,\"%s\",\"%s\",%p)\n",
-                              "Primary Sound Capture Driver",desc.szDrvName,lpContext);
-                        if (lpDSEnumCallback(NULL, "Primary Sound Capture Driver", desc.szDrvName, lpContext) == FALSE)
+                              "Primary Sound Capture Driver",desc.szDrvname,lpContext);
+                        if (lpDSEnumCallback(NULL, "Primary Sound Capture Driver", desc.szDrvname, lpContext) == FALSE)
                             return DS_OK;
                     }
                 }
@@ -203,8 +203,8 @@ DirectSoundCaptureEnumerateA(
 	err = mmErr(waveInMessage((HWAVEIN)wid,DRV_QUERYDSOUNDDESC,(DWORD)&desc,0));
 	if (err == DS_OK) {
             TRACE("calling lpDSEnumCallback(%s,\"%s\",\"%s\",%p)\n",
-                  debugstr_guid(&capture_guids[wid]),desc.szDesc,desc.szDrvName,lpContext);
-            if (lpDSEnumCallback(&capture_guids[wid], desc.szDesc, desc.szDrvName, lpContext) == FALSE)
+                  debugstr_guid(&capture_guids[wid]),desc.szDesc,desc.szDrvname,lpContext);
+            if (lpDSEnumCallback(&capture_guids[wid], desc.szDesc, desc.szDrvname, lpContext) == FALSE)
                 return DS_OK;
 	}
     }
@@ -252,10 +252,10 @@ DirectSoundCaptureEnumerateW(
                     err = mmErr(waveInMessage((HWAVEIN)wid,DRV_QUERYDSOUNDDESC,(DWORD)&desc,0));
                     if (err == DS_OK) {
                         TRACE("calling lpDSEnumCallback(NULL,\"%s\",\"%s\",%p)\n",
-                              "Primary Sound Capture Driver",desc.szDrvName,lpContext);
+                              "Primary Sound Capture Driver",desc.szDrvname,lpContext);
                         MultiByteToWideChar( CP_ACP, 0, "Primary Sound Capture Driver", -1,
                                              wDesc, sizeof(wDesc)/sizeof(WCHAR) );
-                        MultiByteToWideChar( CP_ACP, 0, desc.szDrvName, -1,
+                        MultiByteToWideChar( CP_ACP, 0, desc.szDrvname, -1,
                                              wName, sizeof(wName)/sizeof(WCHAR) );
                         if (lpDSEnumCallback(NULL, wDesc, wName, lpContext) == FALSE)
                             return DS_OK;
@@ -269,10 +269,10 @@ DirectSoundCaptureEnumerateW(
 	err = mmErr(waveInMessage((HWAVEIN)wid,DRV_QUERYDSOUNDDESC,(DWORD)&desc,0));
 	if (err == DS_OK) {
             TRACE("calling lpDSEnumCallback(%s,\"%s\",\"%s\",%p)\n",
-                  debugstr_guid(&capture_guids[wid]),desc.szDesc,desc.szDrvName,lpContext);
+                  debugstr_guid(&capture_guids[wid]),desc.szDesc,desc.szDrvname,lpContext);
             MultiByteToWideChar( CP_ACP, 0, desc.szDesc, -1,
                                  wDesc, sizeof(wDesc)/sizeof(WCHAR) );
-            MultiByteToWideChar( CP_ACP, 0, desc.szDrvName, -1,
+            MultiByteToWideChar( CP_ACP, 0, desc.szDrvname, -1,
                                  wName, sizeof(wName)/sizeof(WCHAR) );
             if (lpDSEnumCallback((LPGUID)&capture_guids[wid], wDesc, wName, lpContext) == FALSE)
                 return DS_OK;
@@ -570,8 +570,8 @@ IDirectSoundCaptureImpl_Initialize(
 
             if (err == DS_OK) {
                 This->drvcaps.dwFlags = 0;
-                strncpy(This->drvdesc.szDrvName, wic.szPname,
-                    sizeof(This->drvdesc.szDrvName));
+                strncpy(This->drvdesc.szDrvname, wic.szPname,
+                    sizeof(This->drvdesc.szDrvname));
 
                 This->drvcaps.dwFlags |= DSCCAPS_EMULDRIVER;
                 This->drvcaps.dwFormats = wic.dwFormats;
Index: dlls/dsound/dsound_main.c
===================================================================
RCS file: /home/wine/wine/dlls/dsound/dsound_main.c,v
retrieving revision 1.113
diff -p -u -r1.113 dsound_main.c
--- dlls/dsound/dsound_main.c	24 Jan 2005 13:31:27 -0000	1.113
+++ dlls/dsound/dsound_main.c	28 Jan 2005 13:11:16 -0000
@@ -325,8 +325,8 @@ HRESULT WINAPI DirectSoundEnumerateA(
                     err = mmErr(waveOutMessage((HWAVEOUT)wod,DRV_QUERYDSOUNDDESC,(DWORD)&desc,0));
                     if (err == DS_OK) {
                         TRACE("calling lpDSEnumCallback(NULL,\"%s\",\"%s\",%p)\n",
-                              "Primary Sound Driver",desc.szDrvName,lpContext);
-                        if (lpDSEnumCallback(NULL, "Primary Sound Driver", desc.szDrvName, lpContext) == FALSE)
+                              "Primary Sound Driver",desc.szDrvname,lpContext);
+                        if (lpDSEnumCallback(NULL, "Primary Sound Driver", desc.szDrvname, lpContext) == FALSE)
                             return DS_OK;
 		    }
 		}
@@ -338,8 +338,8 @@ HRESULT WINAPI DirectSoundEnumerateA(
 	err = mmErr(waveOutMessage((HWAVEOUT)wod,DRV_QUERYDSOUNDDESC,(DWORD)&desc,0));
 	if (err == DS_OK) {
             TRACE("calling lpDSEnumCallback(%s,\"%s\",\"%s\",%p)\n",
-                  debugstr_guid(&renderer_guids[wod]),desc.szDesc,desc.szDrvName,lpContext);
-            if (lpDSEnumCallback(&renderer_guids[wod], desc.szDesc, desc.szDrvName, lpContext) == FALSE)
+                  debugstr_guid(&renderer_guids[wod]),desc.szDesc,desc.szDrvname,lpContext);
+            if (lpDSEnumCallback(&renderer_guids[wod], desc.szDesc, desc.szDrvname, lpContext) == FALSE)
                 return DS_OK;
 	}
     }
@@ -386,10 +386,10 @@ HRESULT WINAPI DirectSoundEnumerateW(
                     err = mmErr(waveOutMessage((HWAVEOUT)wod,DRV_QUERYDSOUNDDESC,(DWORD)&desc,0));
                     if (err == DS_OK) {
                         TRACE("calling lpDSEnumCallback(NULL,\"%s\",\"%s\",%p)\n",
-                              "Primary Sound Driver",desc.szDrvName,lpContext);
+                              "Primary Sound Driver",desc.szDrvname,lpContext);
                         MultiByteToWideChar( CP_ACP, 0, "Primary Sound Driver", -1,
                                              wDesc, sizeof(wDesc)/sizeof(WCHAR) );
-                        MultiByteToWideChar( CP_ACP, 0, desc.szDrvName, -1,
+                        MultiByteToWideChar( CP_ACP, 0, desc.szDrvname, -1,
                                              wName, sizeof(wName)/sizeof(WCHAR) );
                         if (lpDSEnumCallback(NULL, wDesc, wName, lpContext) == FALSE)
                             return DS_OK;
@@ -403,10 +403,10 @@ HRESULT WINAPI DirectSoundEnumerateW(
 	err = mmErr(waveOutMessage((HWAVEOUT)wod,DRV_QUERYDSOUNDDESC,(DWORD)&desc,0));
 	if (err == DS_OK) {
             TRACE("calling lpDSEnumCallback(%s,\"%s\",\"%s\",%p)\n",
-                  debugstr_guid(&renderer_guids[wod]),desc.szDesc,desc.szDrvName,lpContext);
+                  debugstr_guid(&renderer_guids[wod]),desc.szDesc,desc.szDrvname,lpContext);
             MultiByteToWideChar( CP_ACP, 0, desc.szDesc, -1,
                                  wDesc, sizeof(wDesc)/sizeof(WCHAR) );
-            MultiByteToWideChar( CP_ACP, 0, desc.szDrvName, -1,
+            MultiByteToWideChar( CP_ACP, 0, desc.szDrvname, -1,
                                  wName, sizeof(wName)/sizeof(WCHAR) );
             if (lpDSEnumCallback(&renderer_guids[wod], wDesc, wName, lpContext) == FALSE)
                 return DS_OK;
Index: dlls/dsound/propset.c
===================================================================
RCS file: /home/wine/wine/dlls/dsound/propset.c,v
retrieving revision 1.31
diff -p -u -r1.31 propset.c
--- dlls/dsound/propset.c	24 Jan 2005 13:31:27 -0000	1.31
+++ dlls/dsound/propset.c	28 Jan 2005 13:11:16 -0000
@@ -21,14 +21,13 @@
 
 #include <stdarg.h>
 
-#define NONAMELESSUNION
-#define NONAMELESSSTRUCT
 #include "windef.h"
 #include "winbase.h"
 #include "mmsystem.h"
 #include "winreg.h"
 #include "winternl.h"
 #include "winnls.h"
+#include "vfwmsgs.h"
 #include "mmddk.h"
 #include "wine/debug.h"
 #include "dsound.h"
@@ -37,6 +36,12 @@
 #include "initguid.h"
 #include "dsconf.h"
 
+#ifdef NONAMELESSSTRUCT
+# define S(x) (x).s
+#else
+# define S(x) (x)
+#endif
+
 WINE_DEFAULT_DEBUG_CHANNEL(dsound);
 
 
@@ -101,10 +106,10 @@ static HRESULT WINAPI IKsBufferPropertyS
 	    DSPROPERTY prop;
 	    HRESULT hres;
 
-	    prop.s.Set = *guidPropSet;
-	    prop.s.Id = dwPropID;
-	    prop.s.Flags = 0;	/* unused */
-	    prop.s.InstanceId = (ULONG)This->dsb->dsound;
+	    S(prop).Set = *guidPropSet;
+	    S(prop).Id = dwPropID;
+	    S(prop).Flags = 0;	/* unused */
+	    S(prop).InstanceId = (ULONG)This->dsb->dsound;
 
 	    hres = IDsDriverPropertySet_Get(ps, &prop, pInstanceData, cbInstanceData, pPropData, cbPropData, pcbReturned);
 
@@ -137,10 +142,10 @@ static HRESULT WINAPI IKsBufferPropertyS
 	    DSPROPERTY prop;
 	    HRESULT hres;
 
-	    prop.s.Set = *guidPropSet;
-	    prop.s.Id = dwPropID;
-	    prop.s.Flags = 0;	/* unused */
-	    prop.s.InstanceId = (ULONG)This->dsb->dsound;
+	    S(prop).Set = *guidPropSet;
+	    S(prop).Id = dwPropID;
+	    S(prop).Flags = 0;	/* unused */
+	    S(prop).InstanceId = (ULONG)This->dsb->dsound;
 	    hres = IDsDriverPropertySet_Set(ps,&prop,pInstanceData,cbInstanceData,pPropData,cbPropData);
 
 	    IDsDriverPropertySet_Release(ps);
@@ -380,9 +385,9 @@ static HRESULT WINAPI DSPROPERTY_Descrip
                 if (err == DS_OK) {
                     PIDSDRIVER drv = NULL;
                     strncpy(ppd->DescriptionA, desc.szDesc, sizeof(ppd->DescriptionA) - 1);
-                    strncpy(ppd->ModuleA, desc.szDrvName, sizeof(ppd->ModuleA) - 1);
+                    strncpy(ppd->ModuleA, desc.szDrvname, sizeof(ppd->ModuleA) - 1);
                     MultiByteToWideChar( CP_ACP, 0, desc.szDesc, -1, ppd->DescriptionW, sizeof(ppd->DescriptionW)/sizeof(WCHAR) );
-                    MultiByteToWideChar( CP_ACP, 0, desc.szDrvName, -1, ppd->ModuleW, sizeof(ppd->ModuleW)/sizeof(WCHAR) );
+                    MultiByteToWideChar( CP_ACP, 0, desc.szDrvname, -1, ppd->ModuleW, sizeof(ppd->ModuleW)/sizeof(WCHAR) );
                     err = mmErr(waveOutMessage((HWAVEOUT)wod, DRV_QUERYDSOUNDIFACE, (DWORD)&drv, 0));
                     if (err == DS_OK && drv)
                         ppd->Type = DIRECTSOUNDDEVICE_TYPE_VXD;
@@ -409,9 +414,9 @@ static HRESULT WINAPI DSPROPERTY_Descrip
                 if (err == DS_OK) {
                     PIDSCDRIVER drv;
                     strncpy(ppd->DescriptionA, desc.szDesc, sizeof(ppd->DescriptionA) - 1);
-                    strncpy(ppd->ModuleA, desc.szDrvName, sizeof(ppd->ModuleA) - 1);
+                    strncpy(ppd->ModuleA, desc.szDrvname, sizeof(ppd->ModuleA) - 1);
                     MultiByteToWideChar( CP_ACP, 0, desc.szDesc, -1, ppd->DescriptionW, sizeof(ppd->DescriptionW)/sizeof(WCHAR) );
-                    MultiByteToWideChar( CP_ACP, 0, desc.szDrvName, -1, ppd->ModuleW, sizeof(ppd->ModuleW)/sizeof(WCHAR) );
+                    MultiByteToWideChar( CP_ACP, 0, desc.szDrvname, -1, ppd->ModuleW, sizeof(ppd->ModuleW)/sizeof(WCHAR) );
                     err = mmErr(waveInMessage((HWAVEIN)wid,DRV_QUERYDSOUNDIFACE,(DWORD)&drv,0));
                     if (err == DS_OK && drv)
                         ppd->Type = DIRECTSOUNDDEVICE_TYPE_VXD;
@@ -439,9 +444,9 @@ static HRESULT WINAPI DSPROPERTY_Descrip
                 if (err == DS_OK) {
                     PIDSDRIVER drv = NULL;
                     strncpy(ppd->DescriptionA, desc.szDesc, sizeof(ppd->DescriptionA) - 1);
-                    strncpy(ppd->ModuleA, desc.szDrvName, sizeof(ppd->ModuleA) - 1);
+                    strncpy(ppd->ModuleA, desc.szDrvname, sizeof(ppd->ModuleA) - 1);
                     MultiByteToWideChar( CP_ACP, 0, desc.szDesc, -1, ppd->DescriptionW, sizeof(ppd->DescriptionW)/sizeof(WCHAR) );
-                    MultiByteToWideChar( CP_ACP, 0, desc.szDrvName, -1, ppd->ModuleW, sizeof(ppd->ModuleW)/sizeof(WCHAR) );
+                    MultiByteToWideChar( CP_ACP, 0, desc.szDrvname, -1, ppd->ModuleW, sizeof(ppd->ModuleW)/sizeof(WCHAR) );
                     err = mmErr(waveOutMessage((HWAVEOUT)wod, DRV_QUERYDSOUNDIFACE, (DWORD)&drv, 0));
                     if (err == DS_OK && drv)
                         ppd->Type = DIRECTSOUNDDEVICE_TYPE_VXD;
@@ -470,9 +475,9 @@ static HRESULT WINAPI DSPROPERTY_Descrip
                     if (err == DS_OK) {
                         PIDSDRIVER drv = NULL;
                         strncpy(ppd->DescriptionA, desc.szDesc, sizeof(ppd->DescriptionA) - 1);
-                        strncpy(ppd->ModuleA, desc.szDrvName, sizeof(ppd->ModuleA) - 1);
+                        strncpy(ppd->ModuleA, desc.szDrvname, sizeof(ppd->ModuleA) - 1);
                         MultiByteToWideChar( CP_ACP, 0, desc.szDesc, -1, ppd->DescriptionW, sizeof(ppd->DescriptionW)/sizeof(WCHAR) );
-                        MultiByteToWideChar( CP_ACP, 0, desc.szDrvName, -1, ppd->ModuleW, sizeof(ppd->ModuleW)/sizeof(WCHAR) );
+                        MultiByteToWideChar( CP_ACP, 0, desc.szDrvname, -1, ppd->ModuleW, sizeof(ppd->ModuleW)/sizeof(WCHAR) );
                         err = mmErr(waveInMessage((HWAVEIN)wod, DRV_QUERYDSOUNDIFACE, (DWORD)&drv, 0));
                         if (err == DS_OK && drv)
                             ppd->Type = DIRECTSOUNDDEVICE_TYPE_VXD;
@@ -546,11 +551,11 @@ static HRESULT WINAPI DSPROPERTY_Descrip
 			PIDSDRIVER drv = NULL;
 			/* FIXME: this is a memory leak */
 			CHAR * szDescription = HeapAlloc(GetProcessHeap(),0,strlen(desc.szDesc) + 1);
-			CHAR * szModule = HeapAlloc(GetProcessHeap(),0,strlen(desc.szDrvName) + 1);
+			CHAR * szModule = HeapAlloc(GetProcessHeap(),0,strlen(desc.szDrvname) + 1);
 			CHAR * szInterface = HeapAlloc(GetProcessHeap(),0,strlen("Interface") + 1);
 
 			strcpy(szDescription, desc.szDesc);
-			strcpy(szModule, desc.szDrvName);
+			strcpy(szModule, desc.szDrvname);
 			strcpy(szInterface, "Interface");
 
 			ppd->Description = szDescription;
@@ -582,11 +587,11 @@ static HRESULT WINAPI DSPROPERTY_Descrip
 			PIDSCDRIVER drv;
 			/* FIXME: this is a memory leak */
 			CHAR * szDescription = HeapAlloc(GetProcessHeap(),0,strlen(desc.szDesc) + 1);
-			CHAR * szModule = HeapAlloc(GetProcessHeap(),0,strlen(desc.szDrvName) + 1);
+			CHAR * szModule = HeapAlloc(GetProcessHeap(),0,strlen(desc.szDrvname) + 1);
 			CHAR * szInterface = HeapAlloc(GetProcessHeap(),0,strlen("Interface") + 1);
 
 			strcpy(szDescription, desc.szDesc);
-			strcpy(szModule, desc.szDrvName);
+			strcpy(szModule, desc.szDrvname);
 			strcpy(szInterface, "Interface");
 
 			ppd->Description = szDescription;
@@ -619,11 +624,11 @@ static HRESULT WINAPI DSPROPERTY_Descrip
 			PIDSDRIVER drv = NULL;
 			/* FIXME: this is a memory leak */
 			CHAR * szDescription = HeapAlloc(GetProcessHeap(),0,strlen(desc.szDesc) + 1);
-			CHAR * szModule = HeapAlloc(GetProcessHeap(),0,strlen(desc.szDrvName) + 1);
+			CHAR * szModule = HeapAlloc(GetProcessHeap(),0,strlen(desc.szDrvname) + 1);
 			CHAR * szInterface = HeapAlloc(GetProcessHeap(),0,strlen("Interface") + 1);
 
 			strcpy(szDescription, desc.szDesc);
-			strcpy(szModule, desc.szDrvName);
+			strcpy(szModule, desc.szDrvname);
 			strcpy(szInterface, "Interface");
 
 			ppd->Description = szDescription;
@@ -705,7 +710,7 @@ static HRESULT WINAPI DSPROPERTY_Descrip
 			WCHAR * wInterface = HeapAlloc(GetProcessHeap(),0,0x200);
 
 			MultiByteToWideChar( CP_ACP, 0, desc.szDesc, -1, wDescription, 0x100  );
-			MultiByteToWideChar( CP_ACP, 0, desc.szDrvName, -1, wModule, 0x100 );
+			MultiByteToWideChar( CP_ACP, 0, desc.szDrvname, -1, wModule, 0x100 );
 			MultiByteToWideChar( CP_ACP, 0, "Interface", -1, wInterface, 0x100 );
 
 			ppd->Description = wDescription;
@@ -741,7 +746,7 @@ static HRESULT WINAPI DSPROPERTY_Descrip
 			WCHAR * wInterface = HeapAlloc(GetProcessHeap(),0,0x200);
 
 			MultiByteToWideChar( CP_ACP, 0, desc.szDesc, -1, wDescription, 0x100  );
-			MultiByteToWideChar( CP_ACP, 0, desc.szDrvName, -1, wModule, 0x100 );
+			MultiByteToWideChar( CP_ACP, 0, desc.szDrvname, -1, wModule, 0x100 );
 			MultiByteToWideChar( CP_ACP, 0, "Interface", -1, wInterface, 0x100 );
 
 			ppd->Description = wDescription;
@@ -778,7 +783,7 @@ static HRESULT WINAPI DSPROPERTY_Descrip
 			WCHAR * wInterface = HeapAlloc(GetProcessHeap(),0,0x200);
 
 			MultiByteToWideChar( CP_ACP, 0, desc.szDesc, -1, wDescription, 0x100  );
-			MultiByteToWideChar( CP_ACP, 0, desc.szDrvName, -1, wModule, 0x100 );
+			MultiByteToWideChar( CP_ACP, 0, desc.szDrvname, -1, wModule, 0x100 );
 			MultiByteToWideChar( CP_ACP, 0, "Interface", -1, wInterface, 0x100 );
 
 			ppd->Description = wDescription;
@@ -849,7 +854,7 @@ static HRESULT WINAPI DSPROPERTY_Enumera
 			data.WaveDeviceId = wod;
 			data.DeviceId = renderer_guids[wod];
 			data.Description = desc.szDesc;
-			data.Module = desc.szDrvName;
+			data.Module = desc.szDrvname;
 			err = mmErr(waveOutMessage((HWAVEOUT)wod,DRV_QUERYDEVICEINTERFACESIZE,(DWORD_PTR)&size,0));
 			if (err == DS_OK) {
 			    WCHAR * nameW = HeapAlloc(GetProcessHeap(),0,size);
@@ -879,7 +884,7 @@ static HRESULT WINAPI DSPROPERTY_Enumera
 			data.WaveDeviceId = wid;
 			data.DeviceId = capture_guids[wid];
 			data.Description = desc.szDesc;
-			data.Module = desc.szDrvName;
+			data.Module = desc.szDrvname;
 			err = mmErr(waveInMessage((HWAVEIN)wid,DRV_QUERYDEVICEINTERFACESIZE,(DWORD_PTR)&size,0));
 			if (err == DS_OK) {
 			    WCHAR * nameW = HeapAlloc(GetProcessHeap(),0,size);
@@ -950,7 +955,7 @@ static HRESULT WINAPI DSPROPERTY_Enumera
 				data.DeviceId = renderer_guids[wod];
 
 				MultiByteToWideChar( CP_ACP, 0, desc.szDesc, -1, wDescription, 0x100 );
-				MultiByteToWideChar( CP_ACP, 0, desc.szDrvName, -1, wModule, 0x100 );
+				MultiByteToWideChar( CP_ACP, 0, desc.szDrvname, -1, wModule, 0x100 );
 
 				data.Description = wDescription;
 				data.Module = wModule;
@@ -984,7 +989,7 @@ static HRESULT WINAPI DSPROPERTY_Enumera
 				data.DeviceId = capture_guids[wid];
 
 				MultiByteToWideChar( CP_ACP, 0, desc.szDesc, -1, wDescription, 0x100 );
-				MultiByteToWideChar( CP_ACP, 0, desc.szDrvName, -1, wModule, 0x100 );
+				MultiByteToWideChar( CP_ACP, 0, desc.szDrvname, -1, wModule, 0x100 );
 
 				data.Description = wDescription;
 				data.Module = wModule;
Index: dlls/winmm/winealsa/audio.c
===================================================================
RCS file: /home/wine/wine/dlls/winmm/winealsa/audio.c,v
retrieving revision 1.62
diff -p -u -r1.62 audio.c
--- dlls/winmm/winealsa/audio.c	12 Jan 2005 19:55:24 -0000	1.62
+++ dlls/winmm/winealsa/audio.c	28 Jan 2005 13:11:21 -0000
@@ -707,7 +707,7 @@ LONG ALSA_WaveInit(void)
     wwo->caps.dwFormats = 0x00000000;
     wwo->caps.dwSupport = WAVECAPS_VOLUME;
     strcpy(wwo->ds_desc.szDesc, "WineALSA DirectSound Driver");
-    strcpy(wwo->ds_desc.szDrvName, "winealsa.drv");
+    strcpy(wwo->ds_desc.szDrvname, "winealsa.drv");
 
     if (!wine_dlopen("libasound.so.2", RTLD_LAZY|RTLD_GLOBAL, NULL, 0))
     {
@@ -821,7 +821,7 @@ LONG ALSA_WaveInit(void)
     wwi->caps.dwFormats = 0x00000000;
     wwi->caps.dwSupport = WAVECAPS_VOLUME;
     strcpy(wwi->ds_desc.szDesc, "WineALSA DirectSound Driver");
-    strcpy(wwi->ds_desc.szDrvName, "winealsa.drv");
+    strcpy(wwi->ds_desc.szDrvname, "winealsa.drv");
 
     snd_pcm_info_alloca(&info);
     snd_pcm_hw_params_alloca(&hw_params);
Index: dlls/winmm/winearts/audio.c
===================================================================
RCS file: /home/wine/wine/dlls/winmm/winearts/audio.c,v
retrieving revision 1.27
diff -p -u -r1.27 audio.c
--- dlls/winmm/winearts/audio.c	23 Dec 2004 20:31:56 -0000	1.27
+++ dlls/winmm/winearts/audio.c	28 Jan 2005 13:11:22 -0000
@@ -2111,7 +2111,7 @@ static DWORD wodDsDesc(UINT wDevID, PDSD
 {
     memset(desc, 0, sizeof(*desc));
     strcpy(desc->szDesc, "Wine aRts DirectSound Driver");
-    strcpy(desc->szDrvName, "winearts.drv");
+    strcpy(desc->szDrvname, "winearts.drv");
     return MMSYSERR_NOERROR;
 }
 
Index: dlls/winmm/wineaudioio/audio.c
===================================================================
RCS file: /home/wine/wine/dlls/winmm/wineaudioio/audio.c,v
retrieving revision 1.22
diff -p -u -r1.22 audio.c
--- dlls/winmm/wineaudioio/audio.c	12 Jan 2005 19:55:24 -0000	1.22
+++ dlls/winmm/wineaudioio/audio.c	28 Jan 2005 13:11:24 -0000
@@ -1501,7 +1501,7 @@ static HRESULT WINAPI IDsDriverImpl_GetD
     pDesc->dwFlags = DSDDESC_DOMMSYSTEMOPEN | DSDDESC_DOMMSYSTEMSETFORMAT |
 	DSDDESC_USESYSTEMMEMORY | DSDDESC_DONTNEEDPRIMARYLOCK;
     strcpy(pDesc->szDesc,"Wine AudioIO DirectSound Driver");
-    strcpy(pDesc->szDrvName,"wineaudioio.drv");
+    strcpy(pDesc->szDrvname,"wineaudioio.drv");
     pDesc->dnDevNode		= WOutDev[This->wDevID].waveDesc.dnDevNode;
     pDesc->wVxdId		= 0;
     pDesc->wReserved		= 0;
@@ -1678,7 +1678,7 @@ static DWORD wodDsDesc(UINT wDevID, PDSD
 {
     memset(desc, 0, sizeof(*desc));
     strcpy(desc->szDesc, "Wine LIBAUDIOIO DirectSound Driver");
-    strcpy(desc->szDrvName, "wineaudioio.drv");
+    strcpy(desc->szDrvname, "wineaudioio.drv");
     return MMSYSERR_NOERROR;
 }
 
@@ -2250,7 +2250,7 @@ static DWORD widDsDesc(UINT wDevID, PDSD
 {
     memset(desc, 0, sizeof(*desc));
     strcpy(desc->szDesc, "Wine LIBAUDIOIO DirectSound Driver");
-    strcpy(desc->szDrvName, "wineaudioio.drv");
+    strcpy(desc->szDrvname, "wineaudioio.drv");
     return MMSYSERR_NOERROR;
 }
 
Index: dlls/winmm/winejack/audio.c
===================================================================
RCS file: /home/wine/wine/dlls/winmm/winejack/audio.c,v
retrieving revision 1.20
diff -p -u -r1.20 audio.c
--- dlls/winmm/winejack/audio.c	20 Dec 2004 19:08:18 -0000	1.20
+++ dlls/winmm/winejack/audio.c	28 Jan 2005 13:11:26 -0000
@@ -1795,7 +1795,7 @@ static DWORD wodDsDesc(UINT wDevID, PDSD
 {
     memset(desc, 0, sizeof(*desc));
     strcpy(desc->szDesc, "Wine jack DirectSound Driver");
-    strcpy(desc->szDrvName, "winejack.drv");
+    strcpy(desc->szDrvname, "winejack.drv");
     return MMSYSERR_NOERROR;
 }
 
Index: dlls/winmm/winenas/audio.c
===================================================================
RCS file: /home/wine/wine/dlls/winmm/winenas/audio.c,v
retrieving revision 1.20
diff -p -u -r1.20 audio.c
--- dlls/winmm/winenas/audio.c	20 Dec 2004 19:08:18 -0000	1.20
+++ dlls/winmm/winenas/audio.c	28 Jan 2005 13:11:27 -0000
@@ -1297,7 +1297,7 @@ static DWORD wodDsDesc(UINT wDevID, PDSD
 {
     memset(desc, 0, sizeof(*desc));
     strcpy(desc->szDesc, "Wine NAS DirectSound Driver");
-    strcpy(desc->szDrvName, "winenas.drv");
+    strcpy(desc->szDrvname, "winenas.drv");
     return MMSYSERR_NOERROR;
 }
 
Index: dlls/winmm/wineoss/audio.c
===================================================================
RCS file: /home/wine/wine/dlls/winmm/wineoss/audio.c,v
retrieving revision 1.151
diff -p -u -r1.151 audio.c
--- dlls/winmm/wineoss/audio.c	20 Dec 2004 19:08:18 -0000	1.151
+++ dlls/winmm/wineoss/audio.c	28 Jan 2005 13:11:29 -0000
@@ -687,7 +687,7 @@ static BOOL OSS_WaveOutInit(OSS_DEVICE* 
             mixer_info info;
             if (ioctl(mixer, SOUND_MIXER_INFO, &info) >= 0) {
                 strncpy(ossdev->ds_desc.szDesc, info.name, sizeof(info.name));
-                strcpy(ossdev->ds_desc.szDrvName, "wineoss.drv");
+                strcpy(ossdev->ds_desc.szDrvname, "wineoss.drv");
                 MultiByteToWideChar(CP_ACP, 0, info.name, sizeof(info.name), 
                                     ossdev->out_caps.szPname, 
                                     sizeof(ossdev->out_caps.szPname) / sizeof(WCHAR));
Index: include/dsdriver.h
===================================================================
RCS file: /home/wine/wine/include/dsdriver.h,v
retrieving revision 1.12
diff -p -u -r1.12 dsdriver.h
--- include/dsdriver.h	5 Oct 2004 04:38:15 -0000	1.12
+++ include/dsdriver.h	28 Jan 2005 13:11:30 -0000
@@ -62,7 +62,7 @@ typedef struct _DSDRIVERDESC
 {
     DWORD      	dwFlags;
     CHAR	szDesc[256];
-    CHAR	szDrvName[256];
+    CHAR	szDrvname[256];
     DWORD	dnDevNode;
     WORD	wVxdId;
     WORD	wReserved;


More information about the wine-patches mailing list