winmm: Make MCI_strdupAtoW() static and remove MCI_strdupWtoA().
Francois Gouget
fgouget at free.fr
Thu Aug 26 06:03:29 CDT 2010
---
MCI_strdupWtoA() was not used obviously.
dlls/winmm/mci.c | 14 +-------------
dlls/winmm/winemm.h | 2 --
2 files changed, 1 insertions(+), 15 deletions(-)
diff --git a/dlls/winmm/mci.c b/dlls/winmm/mci.c
index 18da269..d604c98 100644
--- a/dlls/winmm/mci.c
+++ b/dlls/winmm/mci.c
@@ -213,7 +213,7 @@ static 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;
diff --git a/dlls/winmm/winemm.h b/dlls/winmm/winemm.h
index 6330747..75dc1e4 100644
--- a/dlls/winmm/winemm.h
+++ b/dlls/winmm/winemm.h
@@ -146,8 +146,6 @@ DWORD MMDRV_Message(LPWINE_MLD mld, UINT wMsg, DWORD_PTR dwParam1, DWO
UINT MMDRV_PhysicalFeatures(LPWINE_MLD mld, UINT uMsg, DWORD_PTR dwParam1, DWORD_PTR dwParam2);
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);
--
1.7.1
More information about the wine-patches
mailing list