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
4256608e
Commit
4256608e
authored
Jan 07, 2009
by
Andrew Talbot
Committed by
Alexandre Julliard
Jan 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msacm32: Declare a function static.
parent
c2d3ed24
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
30 deletions
+29
-30
internal.c
dlls/msacm32/internal.c
+29
-29
wineacm.h
dlls/msacm32/wineacm.h
+0
-1
No files found.
dlls/msacm32/internal.c
View file @
4256608e
...
...
@@ -711,6 +711,35 @@ void MSACM_WriteCurrentPriorities(void)
RegCloseKey
(
hPriorityKey
);
}
static
PWINE_ACMLOCALDRIVER
MSACM_pFirstACMLocalDriver
;
static
PWINE_ACMLOCALDRIVER
MSACM_pLastACMLocalDriver
;
static
PWINE_ACMLOCALDRIVER
MSACM_UnregisterLocalDriver
(
PWINE_ACMLOCALDRIVER
paldrv
)
{
PWINE_ACMLOCALDRIVER
pNextACMLocalDriver
;
if
(
paldrv
->
pACMInstList
)
{
ERR
(
"local driver instances still present after closing all drivers - memory leak
\n
"
);
return
NULL
;
}
if
(
paldrv
==
MSACM_pFirstACMLocalDriver
)
MSACM_pFirstACMLocalDriver
=
paldrv
->
pNextACMLocalDrv
;
if
(
paldrv
==
MSACM_pLastACMLocalDriver
)
MSACM_pLastACMLocalDriver
=
paldrv
->
pPrevACMLocalDrv
;
if
(
paldrv
->
pPrevACMLocalDrv
)
paldrv
->
pPrevACMLocalDrv
->
pNextACMLocalDrv
=
paldrv
->
pNextACMLocalDrv
;
if
(
paldrv
->
pNextACMLocalDrv
)
paldrv
->
pNextACMLocalDrv
->
pPrevACMLocalDrv
=
paldrv
->
pPrevACMLocalDrv
;
pNextACMLocalDriver
=
paldrv
->
pNextACMLocalDrv
;
HeapFree
(
MSACM_hHeap
,
0
,
paldrv
);
return
pNextACMLocalDriver
;
}
/***********************************************************************
* MSACM_UnregisterDriver()
*/
...
...
@@ -824,9 +853,6 @@ MMRESULT MSACM_Message(HACMDRIVER had, UINT uMsg, LPARAM lParam1, LPARAM lParam2
return
MMSYSERR_INVALHANDLE
;
}
static
PWINE_ACMLOCALDRIVER
MSACM_pFirstACMLocalDriver
;
static
PWINE_ACMLOCALDRIVER
MSACM_pLastACMLocalDriver
;
PWINE_ACMLOCALDRIVER
MSACM_RegisterLocalDriver
(
HMODULE
hModule
,
DRIVERPROC
lpDriverProc
)
{
PWINE_ACMLOCALDRIVER
paldrv
;
...
...
@@ -1040,29 +1066,3 @@ LRESULT MSACM_CloseLocalDriver(PWINE_ACMLOCALDRIVERINST paldrv)
ERR
(
"unable to close driver instance
\n
"
);
return
FALSE
;
}
PWINE_ACMLOCALDRIVER
MSACM_UnregisterLocalDriver
(
PWINE_ACMLOCALDRIVER
paldrv
)
{
PWINE_ACMLOCALDRIVER
pNextACMLocalDriver
;
if
(
paldrv
->
pACMInstList
)
{
ERR
(
"local driver instances still present after closing all drivers - memory leak
\n
"
);
return
NULL
;
}
if
(
paldrv
==
MSACM_pFirstACMLocalDriver
)
MSACM_pFirstACMLocalDriver
=
paldrv
->
pNextACMLocalDrv
;
if
(
paldrv
==
MSACM_pLastACMLocalDriver
)
MSACM_pLastACMLocalDriver
=
paldrv
->
pPrevACMLocalDrv
;
if
(
paldrv
->
pPrevACMLocalDrv
)
paldrv
->
pPrevACMLocalDrv
->
pNextACMLocalDrv
=
paldrv
->
pNextACMLocalDrv
;
if
(
paldrv
->
pNextACMLocalDrv
)
paldrv
->
pNextACMLocalDrv
->
pPrevACMLocalDrv
=
paldrv
->
pPrevACMLocalDrv
;
pNextACMLocalDriver
=
paldrv
->
pNextACMLocalDrv
;
HeapFree
(
MSACM_hHeap
,
0
,
paldrv
);
return
pNextACMLocalDriver
;
}
dlls/msacm32/wineacm.h
View file @
4256608e
...
...
@@ -397,7 +397,6 @@ extern PWINE_ACMDRIVERID MSACM_RegisterDriverFromRegistry(LPCWSTR pszRegEntry);
extern
PWINE_ACMLOCALDRIVER
MSACM_RegisterLocalDriver
(
HMODULE
hModule
,
DRIVERPROC
lpDriverProc
);
extern
PWINE_ACMLOCALDRIVERINST
MSACM_OpenLocalDriver
(
PWINE_ACMLOCALDRIVER
,
LPARAM
);
extern
LRESULT
MSACM_CloseLocalDriver
(
PWINE_ACMLOCALDRIVERINST
);
extern
PWINE_ACMLOCALDRIVER
MSACM_UnregisterLocalDriver
(
PWINE_ACMLOCALDRIVER
);
/*
extern PWINE_ACMLOCALDRIVER MSACM_GetLocalDriver(HACMDRIVER hDriver);
*/
...
...
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