Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
cd732867
Commit
cd732867
authored
Dec 01, 2003
by
Eric Pouech
Committed by
Alexandre Julliard
Dec 01, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move usage of 16 bit specific functions (MapSL) in 16 bit code only.
parent
cf1b6535
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
25 deletions
+17
-25
lolvldrv.c
dlls/winmm/lolvldrv.c
+7
-19
mmsystem.c
dlls/winmm/mmsystem.c
+6
-2
winemm.h
dlls/winmm/winemm.h
+1
-1
winmm.c
dlls/winmm/winmm.c
+3
-3
No files found.
dlls/winmm/lolvldrv.c
View file @
cd732867
...
...
@@ -461,25 +461,19 @@ LPWINE_MLD MMDRV_GetRelated(HANDLE hndl, UINT srcType,
* MMDRV_PhysicalFeatures [internal]
*/
UINT
MMDRV_PhysicalFeatures
(
LPWINE_MLD
mld
,
UINT
uMsg
,
DWORD
dwParam1
,
DWORD
dwParam2
,
BOOL
bFrom32
)
DWORD
dwParam2
)
{
WINE_MM_DRIVER
*
lpDrv
=
&
MMDrvs
[
mld
->
mmdIndex
];
TRACE
(
"(%p, %04x, %08lx, %08lx
, %d)
\n
"
,
mld
,
uMsg
,
dwParam1
,
dwParam2
,
bFrom3
2
);
TRACE
(
"(%p, %04x, %08lx, %08lx
)
\n
"
,
mld
,
uMsg
,
dwParam1
,
dwParam
2
);
/* all those function calls are undocumented */
switch
(
uMsg
)
{
case
DRV_QUERYDRVENTRY
:
if
(
bFrom32
)
lstrcpynA
((
LPSTR
)
dwParam1
,
lpDrv
->
drvname
,
LOWORD
(
dwParam2
));
else
lstrcpynA
((
LPSTR
)
MapSL
(
dwParam1
),
lpDrv
->
drvname
,
LOWORD
(
dwParam2
));
lstrcpynA
((
LPSTR
)
dwParam1
,
lpDrv
->
drvname
,
LOWORD
(
dwParam2
));
break
;
case
DRV_QUERYDEVNODE
:
if
(
bFrom32
)
*
(
LPDWORD
)
dwParam1
=
0L
;
/* should be DevNode */
else
*
(
DWORD
*
)
MapSL
(
dwParam1
)
=
0L
;
*
(
LPDWORD
)
dwParam1
=
0L
;
/* should be DevNode */
break
;
case
DRV_QUERYNAME
:
WARN
(
"NIY QueryName
\n
"
);
...
...
@@ -496,18 +490,12 @@ UINT MMDRV_PhysicalFeatures(LPWINE_MLD mld, UINT uMsg, DWORD dwParam1,
case
DRVM_MAPPER_PREFERRED_GET
:
/* FIXME: get from registry someday */
if
(
bFrom32
)
{
*
((
LPDWORD
)
dwParam1
)
=
-
1
;
/* No preferred device */
break
;
}
return
MMSYSERR_INVALPARAM
;
*
((
LPDWORD
)
dwParam1
)
=
-
1
;
/* No preferred device */
break
;
case
DRV_QUERYDEVICEINTERFACE
:
case
DRV_QUERYDEVICEINTERFACESIZE
:
if
(
bFrom32
)
return
MMDRV_Message
(
mld
,
uMsg
,
dwParam1
,
dwParam2
,
TRUE
);
return
MMSYSERR_INVALPARAM
;
return
MMDRV_Message
(
mld
,
uMsg
,
dwParam1
,
dwParam2
,
TRUE
);
case
DRV_QUERYDSOUNDIFACE
:
/* Wine-specific: Retrieve DirectSound interface */
case
DRV_QUERYDSOUNDDESC
:
/* Wine-specific: Retrieve DirectSound driver description*/
...
...
dlls/winmm/mmsystem.c
View file @
cd732867
...
...
@@ -1485,7 +1485,9 @@ DWORD WINAPI waveOutMessage16(HWAVEOUT16 hWaveOut, UINT16 uMessage,
if
((
wmld
=
MMDRV_Get
(
HWAVEOUT_32
(
hWaveOut
),
MMDRV_WAVEOUT
,
FALSE
))
==
NULL
)
{
if
((
wmld
=
MMDRV_Get
(
HWAVEOUT_32
(
hWaveOut
),
MMDRV_WAVEOUT
,
TRUE
))
!=
NULL
)
{
return
MMDRV_PhysicalFeatures
(
wmld
,
uMessage
,
dwParam1
,
dwParam2
,
FALSE
);
if
(
uMessage
==
DRV_QUERYDRVENTRY
||
uMessage
==
DRV_QUERYDEVNODE
)
dwParam1
=
(
DWORD
)
MapSL
(
dwParam1
);
return
MMDRV_PhysicalFeatures
(
wmld
,
uMessage
,
dwParam1
,
dwParam2
);
}
return
MMSYSERR_INVALHANDLE
;
}
...
...
@@ -1726,7 +1728,9 @@ DWORD WINAPI waveInMessage16(HWAVEIN16 hWaveIn, UINT16 uMessage,
if
((
wmld
=
MMDRV_Get
(
HWAVEIN_32
(
hWaveIn
),
MMDRV_WAVEIN
,
FALSE
))
==
NULL
)
{
if
((
wmld
=
MMDRV_Get
(
HWAVEIN_32
(
hWaveIn
),
MMDRV_WAVEIN
,
TRUE
))
!=
NULL
)
{
return
MMDRV_PhysicalFeatures
(
wmld
,
uMessage
,
dwParam1
,
dwParam2
,
FALSE
);
if
(
uMessage
==
DRV_QUERYDRVENTRY
||
uMessage
==
DRV_QUERYDEVNODE
)
dwParam1
=
(
DWORD
)
MapSL
(
dwParam1
);
return
MMDRV_PhysicalFeatures
(
wmld
,
uMessage
,
dwParam1
,
dwParam2
);
}
return
MMSYSERR_INVALHANDLE
;
}
...
...
dlls/winmm/winemm.h
View file @
cd732867
...
...
@@ -243,7 +243,7 @@ DWORD MMDRV_Close(LPWINE_MLD mld, UINT wMsg);
LPWINE_MLD
MMDRV_Get
(
HANDLE
hndl
,
UINT
type
,
BOOL
bCanBeID
);
LPWINE_MLD
MMDRV_GetRelated
(
HANDLE
hndl
,
UINT
srcType
,
BOOL
bSrcCanBeID
,
UINT
dstTyped
);
DWORD
MMDRV_Message
(
LPWINE_MLD
mld
,
WORD
wMsg
,
DWORD
dwParam1
,
DWORD
dwParam2
,
BOOL
bFrom32
);
UINT
MMDRV_PhysicalFeatures
(
LPWINE_MLD
mld
,
UINT
uMsg
,
DWORD
dwParam1
,
DWORD
dwParam2
,
BOOL
bFrom32
);
UINT
MMDRV_PhysicalFeatures
(
LPWINE_MLD
mld
,
UINT
uMsg
,
DWORD
dwParam1
,
DWORD
dwParam2
);
BOOL
MMDRV_Is32
(
unsigned
int
);
void
MMDRV_InstallMap
(
unsigned
int
,
MMDRV_MAPFUNC
,
MMDRV_UNMAPFUNC
,
MMDRV_MAPFUNC
,
MMDRV_UNMAPFUNC
,
LPDRVCALLBACK
);
...
...
dlls/winmm/winmm.c
View file @
cd732867
...
...
@@ -1306,7 +1306,7 @@ UINT WINAPI midiOutMessage(HMIDIOUT hMidiOut, UINT uMessage,
return
0
;
}
if
((
wmld
=
MMDRV_Get
(
hMidiOut
,
MMDRV_MIDIOUT
,
TRUE
))
!=
NULL
)
{
return
MMDRV_PhysicalFeatures
(
wmld
,
uMessage
,
dwParam1
,
dwParam2
,
TRUE
);
return
MMDRV_PhysicalFeatures
(
wmld
,
uMessage
,
dwParam1
,
dwParam2
);
}
return
MMSYSERR_INVALHANDLE
;
}
...
...
@@ -2619,7 +2619,7 @@ UINT WINAPI waveOutMessage(HWAVEOUT hWaveOut, UINT uMessage,
if
((
wmld
=
MMDRV_Get
(
hWaveOut
,
MMDRV_WAVEOUT
,
FALSE
))
==
NULL
)
{
if
((
wmld
=
MMDRV_Get
(
hWaveOut
,
MMDRV_WAVEOUT
,
TRUE
))
!=
NULL
)
{
return
MMDRV_PhysicalFeatures
(
wmld
,
uMessage
,
dwParam1
,
dwParam2
,
TRUE
);
return
MMDRV_PhysicalFeatures
(
wmld
,
uMessage
,
dwParam1
,
dwParam2
);
}
return
MMSYSERR_INVALHANDLE
;
}
...
...
@@ -2877,7 +2877,7 @@ UINT WINAPI waveInMessage(HWAVEIN hWaveIn, UINT uMessage,
if
((
wmld
=
MMDRV_Get
(
hWaveIn
,
MMDRV_WAVEIN
,
FALSE
))
==
NULL
)
{
if
((
wmld
=
MMDRV_Get
(
hWaveIn
,
MMDRV_WAVEIN
,
TRUE
))
!=
NULL
)
{
return
MMDRV_PhysicalFeatures
(
wmld
,
uMessage
,
dwParam1
,
dwParam2
,
TRUE
);
return
MMDRV_PhysicalFeatures
(
wmld
,
uMessage
,
dwParam1
,
dwParam2
);
}
return
MMSYSERR_INVALHANDLE
;
}
...
...
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