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
2a581444
Commit
2a581444
authored
Oct 22, 2009
by
Eric Pouech
Committed by
Alexandre Julliard
Oct 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Get rid of 16bit driver support in mci.
parent
14a68405
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
51 deletions
+3
-51
mci.c
dlls/winmm/mci.c
+3
-48
message16.c
dlls/winmm/message16.c
+0
-0
winemm.h
dlls/winmm/winemm.h
+0
-3
No files found.
dlls/winmm/mci.c
View file @
2a581444
...
...
@@ -67,9 +67,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
mci
);
WINMM_MapType
(
*
pFnMciMapMsg32WTo16
)
(
WORD
,
WORD
,
DWORD
,
DWORD_PTR
*
)
=
NULL
;
WINMM_MapType
(
*
pFnMciUnMapMsg32WTo16
)(
WORD
,
WORD
,
DWORD
,
DWORD_PTR
)
=
NULL
;
/* First MCI valid device ID (0 means error) */
#define MCI_MAGIC 0x0001
...
...
@@ -815,30 +812,9 @@ static BOOL MCI_OpenMciDriver(LPWINE_MCIDRIVER wmd, LPCWSTR drvTyp, DWORD_PTR lp
if
(
!
DRIVER_GetLibName
(
drvTyp
,
wszMci
,
libName
,
sizeof
(
libName
)))
return
FALSE
;
wmd
->
bIs32
=
0xFFFF
;
/* First load driver */
if
((
wmd
->
hDriver
=
(
HDRVR
)
DRIVER_TryOpenDriver32
(
libName
,
lp
)))
{
wmd
->
bIs32
=
TRUE
;
}
else
if
(
WINMM_CheckForMMSystem
()
&&
pFnMciMapMsg32WTo16
)
{
WINMM_MapType
res
;
switch
(
res
=
pFnMciMapMsg32WTo16
(
0
,
DRV_OPEN
,
0
,
&
lp
))
{
case
WINMM_MAP_MSGERROR
:
TRACE
(
"Not handled yet (DRV_OPEN)
\n
"
);
break
;
case
WINMM_MAP_NOMEM
:
TRACE
(
"Problem mapping msg=DRV_OPEN from 32W to 16
\n
"
);
break
;
case
WINMM_MAP_OK
:
case
WINMM_MAP_OKMEM
:
if
((
wmd
->
hDriver
=
OpenDriver
(
drvTyp
,
wszMci
,
lp
)))
wmd
->
bIs32
=
FALSE
;
if
(
res
==
WINMM_MAP_OKMEM
)
pFnMciUnMapMsg32WTo16
(
0
,
DRV_OPEN
,
0
,
lp
);
break
;
}
}
return
(
wmd
->
bIs32
==
0xFFFF
)
?
FALSE
:
TRUE
;
wmd
->
hDriver
=
(
HDRVR
)
DRIVER_TryOpenDriver32
(
libName
,
lp
);
return
wmd
->
hDriver
!=
NULL
;
}
/**************************************************************************
...
...
@@ -927,28 +903,7 @@ static DWORD MCI_SendCommandFrom32(MCIDEVICEID wDevID, UINT16 wMsg, DWORD_PTR dw
LPWINE_MCIDRIVER
wmd
=
MCI_GetDriver
(
wDevID
);
if
(
wmd
)
{
if
(
wmd
->
bIs32
)
{
dwRet
=
SendDriverMessage
(
wmd
->
hDriver
,
wMsg
,
dwParam1
,
dwParam2
);
}
else
if
(
pFnMciMapMsg32WTo16
)
{
WINMM_MapType
res
;
switch
(
res
=
pFnMciMapMsg32WTo16
(
wmd
->
wType
,
wMsg
,
dwParam1
,
&
dwParam2
))
{
case
WINMM_MAP_MSGERROR
:
TRACE
(
"Not handled yet (%s)
\n
"
,
MCI_MessageToString
(
wMsg
));
dwRet
=
MCIERR_DRIVER_INTERNAL
;
break
;
case
WINMM_MAP_NOMEM
:
TRACE
(
"Problem mapping msg=%s from 32a to 16
\n
"
,
MCI_MessageToString
(
wMsg
));
dwRet
=
MCIERR_OUT_OF_MEMORY
;
break
;
case
WINMM_MAP_OK
:
case
WINMM_MAP_OKMEM
:
dwRet
=
SendDriverMessage
(
wmd
->
hDriver
,
wMsg
,
dwParam1
,
dwParam2
);
if
(
res
==
WINMM_MAP_OKMEM
)
pFnMciUnMapMsg32WTo16
(
wmd
->
wType
,
wMsg
,
dwParam1
,
dwParam2
);
break
;
}
}
dwRet
=
SendDriverMessage
(
wmd
->
hDriver
,
wMsg
,
dwParam1
,
dwParam2
);
}
return
dwRet
;
}
...
...
dlls/winmm/message16.c
View file @
2a581444
This diff is collapsed.
Click to expand it.
dlls/winmm/winemm.h
View file @
2a581444
...
...
@@ -125,7 +125,6 @@ typedef struct tagWINE_MCIDRIVER {
DWORD_PTR
dwPrivate
;
YIELDPROC
lpfnYieldProc
;
DWORD
dwYieldData
;
BOOL
bIs32
;
DWORD
CreatorThread
;
UINT
uTypeCmdTable
;
UINT
uSpecificCmdTable
;
...
...
@@ -197,8 +196,6 @@ extern HANDLE psStopEvent;
extern
LPWINE_DRIVER
(
*
pFnOpenDriver16
)(
LPCWSTR
,
LPCWSTR
,
LPARAM
);
extern
LRESULT
(
*
pFnCloseDriver16
)(
UINT16
,
LPARAM
,
LPARAM
);
extern
LRESULT
(
*
pFnSendMessage16
)(
UINT16
,
UINT
,
LPARAM
,
LPARAM
);
extern
WINMM_MapType
(
*
pFnMciMapMsg32WTo16
)(
WORD
,
WORD
,
DWORD
,
DWORD_PTR
*
);
extern
WINMM_MapType
(
*
pFnMciUnMapMsg32WTo16
)(
WORD
,
WORD
,
DWORD
,
DWORD_PTR
);
extern
LRESULT
(
*
pFnCallMMDrvFunc16
)(
DWORD
/* in fact FARPROC16 */
,
WORD
,
WORD
,
LONG
,
LONG
,
LONG
);
extern
unsigned
(
*
pFnLoadMMDrvFunc16
)(
LPCSTR
,
LPWINE_DRIVER
,
LPWINE_MM_DRIVER
);
...
...
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