Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
af1a91d3
Commit
af1a91d3
authored
May 27, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
May 30, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msacm32: Constify some variables.
parent
01755125
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
internal.c
dlls/msacm32/internal.c
+6
-6
wineacm.h
dlls/msacm32/wineacm.h
+2
-2
No files found.
dlls/msacm32/internal.c
View file @
af1a91d3
...
...
@@ -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
;
...
...
dlls/msacm32/wineacm.h
View file @
af1a91d3
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment