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
83fca4ee
Commit
83fca4ee
authored
Sep 22, 2003
by
Michal Janusz Miroslaw
Committed by
Alexandre Julliard
Sep 22, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MMDRV_Install: Fix confusing indentation.
parent
8b40f19a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
12 deletions
+17
-12
lolvldrv.c
dlls/winmm/lolvldrv.c
+17
-12
No files found.
dlls/winmm/lolvldrv.c
View file @
83fca4ee
...
...
@@ -640,9 +640,9 @@ static BOOL MMDRV_Install(LPCSTR drvRegName, LPCSTR drvFileName, BOOL bIsMapper)
}
if
(
TRACE_ON
(
winmm
))
{
if
(
MMDRV_GetDescription32
(
drvFileName
,
buffer
,
sizeof
(
buffer
)))
TRACE
(
"%s => %s
\n
"
,
drvFileName
,
buffer
);
else
TRACE
(
"%s => No description
\n
"
,
drvFileName
);
TRACE
(
"%s => %s
\n
"
,
drvFileName
,
buffer
);
else
TRACE
(
"%s => No description
\n
"
,
drvFileName
);
}
}
else
if
(
WINMM_CheckForMMSystem
()
&&
pFnLoadMMDrvFunc16
)
{
count
+=
pFnLoadMMDrvFunc16
(
drvFileName
,
d
,
lpDrv
);
...
...
@@ -663,15 +663,20 @@ static BOOL MMDRV_Install(LPCSTR drvRegName, LPCSTR drvFileName, BOOL bIsMapper)
lpDrv
->
drvname
=
strcpy
(
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
drvRegName
)
+
1
),
drvRegName
);
/* Finish init and get the count of the devices */
MMDRV_InitPerType
(
lpDrv
,
MMDRV_AUX
,
AUXDM_GETNUMDEVS
);
MMDRV_InitPerType
(
lpDrv
,
MMDRV_MIXER
,
MXDM_GETNUMDEVS
);
MMDRV_InitPerType
(
lpDrv
,
MMDRV_MIDIIN
,
MIDM_GETNUMDEVS
);
MMDRV_InitPerType
(
lpDrv
,
MMDRV_MIDIOUT
,
MODM_GETNUMDEVS
);
MMDRV_InitPerType
(
lpDrv
,
MMDRV_WAVEIN
,
WIDM_GETNUMDEVS
);
MMDRV_InitPerType
(
lpDrv
,
MMDRV_WAVEOUT
,
WODM_GETNUMDEVS
);
/* FIXME: if all those func calls return FALSE,
* then the driver must be unloaded
*/
i
=
0
;
if
(
MMDRV_InitPerType
(
lpDrv
,
MMDRV_AUX
,
AUXDM_GETNUMDEVS
))
i
=
1
;
if
(
MMDRV_InitPerType
(
lpDrv
,
MMDRV_MIXER
,
MXDM_GETNUMDEVS
))
i
=
1
;
if
(
MMDRV_InitPerType
(
lpDrv
,
MMDRV_MIDIIN
,
MIDM_GETNUMDEVS
))
i
=
1
;
if
(
MMDRV_InitPerType
(
lpDrv
,
MMDRV_MIDIOUT
,
MODM_GETNUMDEVS
))
i
=
1
;
if
(
MMDRV_InitPerType
(
lpDrv
,
MMDRV_WAVEIN
,
WIDM_GETNUMDEVS
))
i
=
1
;
if
(
MMDRV_InitPerType
(
lpDrv
,
MMDRV_WAVEOUT
,
WODM_GETNUMDEVS
))
i
=
1
;
/* if all those func calls return FALSE, then the driver must be unloaded */
if
(
!
i
)
{
CloseDriver
(
lpDrv
->
hDriver
,
0
,
0
);
HeapFree
(
GetProcessHeap
(),
0
,
lpDrv
->
drvname
);
WARN
(
"Driver initialization failed
\n
"
);
return
FALSE
;
}
MMDrvsHi
++
;
...
...
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