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
40e92175
Commit
40e92175
authored
Jan 04, 2001
by
Eric Pouech
Committed by
Alexandre Julliard
Jan 04, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed loading of 16 bit drivers.
Better support for native mappers.
parent
fe9a0f09
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
lolvldrv.c
dlls/winmm/lolvldrv.c
+9
-6
No files found.
dlls/winmm/lolvldrv.c
View file @
40e92175
...
...
@@ -2311,9 +2311,7 @@ static BOOL MMDRV_InitPerType(LPWINE_MM_DRIVER lpDrv, UINT num,
TRACE("DRVM_ENABLE => %08lx\n", ret);
#endif
count
=
part
->
u
.
fnMessage32
(
0
,
wMsg
,
0L
,
0L
,
0L
);
}
if
(
!
lpDrv
->
bIs32
&&
part
->
u
.
fnMessage16
)
{
}
else
if
(
!
lpDrv
->
bIs32
&&
part
->
u
.
fnMessage16
)
{
ret
=
MMDRV_CallTo16_word_wwlll
((
FARPROC16
)
part
->
u
.
fnMessage16
,
0
,
DRVM_INIT
,
0L
,
0L
,
0L
);
TRACE
(
"DRVM_INIT => %08lx
\n
"
,
ret
);
...
...
@@ -2324,14 +2322,15 @@ static BOOL MMDRV_InitPerType(LPWINE_MM_DRIVER lpDrv, UINT num,
#endif
count
=
MMDRV_CallTo16_word_wwlll
((
FARPROC16
)
part
->
u
.
fnMessage16
,
0
,
wMsg
,
0L
,
0L
,
0L
);
}
else
{
return
FALSE
;
}
TRACE
(
"Got %u dev for (%s:%s)
\n
"
,
count
,
lpDrv
->
name
,
llTypes
[
type
].
name
);
if
(
count
==
0
)
return
FALSE
;
/* got some drivers */
if
(
lpDrv
->
bIsMapper
)
{
/* it seems native mappers return 0 devices :-( */
if
(
llTypes
[
type
].
nMapper
!=
-
1
)
ERR
(
"Two mappers for type %s (%d, %s)
\n
"
,
llTypes
[
type
].
name
,
llTypes
[
type
].
nMapper
,
lpDrv
->
name
);
...
...
@@ -2339,6 +2338,8 @@ static BOOL MMDRV_InitPerType(LPWINE_MM_DRIVER lpDrv, UINT num,
ERR
(
"Strange: mapper with %d > 1 devices
\n
"
,
count
);
llTypes
[
type
].
nMapper
=
num
;
}
else
{
if
(
count
==
0
)
return
FALSE
;
part
->
nIDMin
=
llTypes
[
type
].
wMaxId
;
llTypes
[
type
].
wMaxId
+=
count
;
part
->
nIDMax
=
llTypes
[
type
].
wMaxId
;
...
...
@@ -2433,7 +2434,9 @@ static BOOL MMDRV_Install(LPCSTR name, int num, BOOL bIsMapper)
*/
if
(
d
->
d
.
d16
.
hDriver16
)
{
#define A(_x,_y) AA(d->d.d16.hDriver16,_x,_y,16,GetProcAddress16)
HMODULE16
hMod16
=
GetDriverModuleHandle16
(
d
->
d
.
d16
.
hDriver16
);
#define A(_x,_y) AA(hMod16,_x,_y,16,GetProcAddress16)
A
(
MMDRV_AUX
,
auxMessage
);
A
(
MMDRV_MIXER
,
mixMessage
);
A
(
MMDRV_MIDIIN
,
midMessage
);
...
...
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