Andrew Talbot : msacm32: Constify some variables.

Alexandre Julliard julliard at wine.codeweavers.com
Wed May 30 08:56:59 CDT 2007


Module: wine
Branch: master
Commit: af1a91d35ee278ad076d36655cc115f6d648762d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=af1a91d35ee278ad076d36655cc115f6d648762d

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Sun May 27 17:52:30 2007 +0100

msacm32: Constify some variables.

---

 dlls/msacm32/internal.c |   12 ++++++------
 dlls/msacm32/wineacm.h  |    4 ++--
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/dlls/msacm32/internal.c b/dlls/msacm32/internal.c
index 204a7e2..84898ea 100644
--- a/dlls/msacm32/internal.c
+++ b/dlls/msacm32/internal.c
@@ -113,7 +113,7 @@ static	void MSACM_DumpCache(PWINE_ACMDRIVERID padid)
  *	Returns TRUE is the format tag fmtTag is present in the cache.
  *	If so, idx is set to its index.
  */
-BOOL MSACM_FindFormatTagInCache(WINE_ACMDRIVERID* padid, DWORD fmtTag, LPDWORD idx)
+BOOL MSACM_FindFormatTagInCache(const WINE_ACMDRIVERID* padid, DWORD fmtTag, LPDWORD idx)
 {
     unsigned 	i;
 
@@ -249,7 +249,7 @@ static BOOL MSACM_ReadCache(PWINE_ACMDRIVERID padid)
 /***********************************************************************
  *           MSACM_WriteCache
  */
-static	BOOL MSACM_WriteCache(PWINE_ACMDRIVERID padid)
+static	BOOL MSACM_WriteCache(const WINE_ACMDRIVERID *padid)
 {
     LPWSTR	key = MSACM_GetRegistryKey(padid);
     HKEY	hKey;
@@ -259,11 +259,11 @@ static	BOOL MSACM_WriteCache(PWINE_ACMDRIVERID padid)
     if (RegCreateKeyW(HKEY_LOCAL_MACHINE, key, &hKey))
 	goto errCleanUp;
 
-    if (RegSetValueExA(hKey, "cFormatTags", 0, REG_DWORD, (void*)&padid->cFormatTags, sizeof(DWORD)))
+    if (RegSetValueExA(hKey, "cFormatTags", 0, REG_DWORD, (const void*)&padid->cFormatTags, sizeof(DWORD)))
 	goto errCleanUp;
-    if (RegSetValueExA(hKey, "cFilterTags", 0, REG_DWORD, (void*)&padid->cFilterTags, sizeof(DWORD)))
+    if (RegSetValueExA(hKey, "cFilterTags", 0, REG_DWORD, (const void*)&padid->cFilterTags, sizeof(DWORD)))
 	goto errCleanUp;
-    if (RegSetValueExA(hKey, "fdwSupport", 0, REG_DWORD, (void*)&padid->fdwSupport, sizeof(DWORD)))
+    if (RegSetValueExA(hKey, "fdwSupport", 0, REG_DWORD, (const void*)&padid->fdwSupport, sizeof(DWORD)))
 	goto errCleanUp;
     if (RegSetValueExA(hKey, "aFormatTagCache", 0, REG_BINARY,
 		       (void*)padid->aFormatTag,
@@ -456,7 +456,7 @@ void MSACM_EnableNotifications(void)
 /***********************************************************************
  *           MSACM_UnRegisterNotificationWindow()
  */
-PWINE_ACMNOTIFYWND MSACM_UnRegisterNotificationWindow(PWINE_ACMNOTIFYWND panwnd)
+PWINE_ACMNOTIFYWND MSACM_UnRegisterNotificationWindow(const WINE_ACMNOTIFYWND *panwnd)
 {
     PWINE_ACMNOTIFYWND p;
 
diff --git a/dlls/msacm32/wineacm.h b/dlls/msacm32/wineacm.h
index b575c8c..fc03401 100644
--- a/dlls/msacm32/wineacm.h
+++ b/dlls/msacm32/wineacm.h
@@ -382,7 +382,7 @@ extern PWINE_ACMNOTIFYWND MSACM_GetNotifyWnd(HACMDRIVERID hDriver);
 extern PWINE_ACMOBJ MSACM_GetObj(HACMOBJ hObj, DWORD type);
 
 extern MMRESULT MSACM_Message(HACMDRIVER, UINT, LPARAM, LPARAM);
-extern BOOL MSACM_FindFormatTagInCache(WINE_ACMDRIVERID*, DWORD, LPDWORD);
+extern BOOL MSACM_FindFormatTagInCache(const WINE_ACMDRIVERID*, DWORD, LPDWORD);
 
 extern void MSACM_RePositionDriver(PWINE_ACMDRIVERID, DWORD);
 extern void MSACM_WriteCurrentPriorities(void);
@@ -390,7 +390,7 @@ extern void MSACM_BroadcastNotification(void);
 extern void MSACM_DisableNotifications(void);
 extern void MSACM_EnableNotifications(void);
 extern PWINE_ACMNOTIFYWND MSACM_RegisterNotificationWindow(HWND hNotifyWnd, DWORD dwNotifyMsg);
-extern PWINE_ACMNOTIFYWND MSACM_UnRegisterNotificationWindow(PWINE_ACMNOTIFYWND);
+extern PWINE_ACMNOTIFYWND MSACM_UnRegisterNotificationWindow(const WINE_ACMNOTIFYWND*);
 
 extern PWINE_ACMDRIVERID MSACM_RegisterDriverFromRegistry(LPCWSTR pszRegEntry);
 




More information about the wine-cvs mailing list