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
f8c55fdc
Commit
f8c55fdc
authored
Aug 31, 2010
by
Francois Gouget
Committed by
Alexandre Julliard
Aug 31, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Make MCI_{MessageToString,strdupAtoW}() static and remove MCI_strdupWtoA().
parent
b520cc1a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
17 deletions
+2
-17
mci.c
dlls/winmm/mci.c
+2
-14
winemm.h
dlls/winmm/winemm.h
+0
-3
No files found.
dlls/winmm/mci.c
View file @
f8c55fdc
...
...
@@ -144,7 +144,7 @@ static UINT MCI_GetDriverFromString(LPCWSTR lpstrName)
/**************************************************************************
* MCI_MessageToString [internal]
*/
const
char
*
MCI_MessageToString
(
UINT
wMsg
)
static
const
char
*
MCI_MessageToString
(
UINT
wMsg
)
{
#define CASE(s) case (s): return #s
...
...
@@ -213,7 +213,7 @@ const char* MCI_MessageToString(UINT wMsg)
}
}
LPWSTR
MCI_strdupAtoW
(
LPCSTR
str
)
static
LPWSTR
MCI_strdupAtoW
(
LPCSTR
str
)
{
LPWSTR
ret
;
INT
len
;
...
...
@@ -225,18 +225,6 @@ LPWSTR MCI_strdupAtoW( LPCSTR str )
return
ret
;
}
LPSTR
MCI_strdupWtoA
(
LPCWSTR
str
)
{
LPSTR
ret
;
INT
len
;
if
(
!
str
)
return
NULL
;
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
str
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
ret
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
if
(
ret
)
WideCharToMultiByte
(
CP_ACP
,
0
,
str
,
-
1
,
ret
,
len
,
NULL
,
NULL
);
return
ret
;
}
static
int
MCI_MapMsgAtoW
(
UINT
msg
,
DWORD_PTR
dwParam1
,
DWORD_PTR
*
dwParam2
)
{
if
(
msg
<
DRV_RESERVED
)
return
0
;
...
...
dlls/winmm/winemm.h
View file @
f8c55fdc
...
...
@@ -145,10 +145,7 @@ LPWINE_MLD MMDRV_GetRelated(HANDLE hndl, UINT srcType, BOOL bSrcCanBeID, UINT ds
DWORD
MMDRV_Message
(
LPWINE_MLD
mld
,
UINT
wMsg
,
DWORD_PTR
dwParam1
,
DWORD_PTR
dwParam2
);
UINT
MMDRV_PhysicalFeatures
(
LPWINE_MLD
mld
,
UINT
uMsg
,
DWORD_PTR
dwParam1
,
DWORD_PTR
dwParam2
);
const
char
*
MCI_MessageToString
(
UINT
wMsg
);
DWORD
MCI_SendCommand
(
UINT
wDevID
,
UINT16
wMsg
,
DWORD_PTR
dwParam1
,
DWORD_PTR
dwParam2
);
LPWSTR
MCI_strdupAtoW
(
LPCSTR
str
);
LPSTR
MCI_strdupWtoA
(
LPCWSTR
str
);
const
char
*
WINMM_ErrorToString
(
MMRESULT
error
);
...
...
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