winmm: Let WideCharToMultiByte search for NUL string terminator (Valgrind).

This commit is contained in:
Jörg Höhle 2011-02-20 18:55:12 +01:00 committed by Alexandre Julliard
parent 44527f57b2
commit fd8576bfdb
1 changed files with 2 additions and 2 deletions

View File

@ -464,7 +464,7 @@ static void MCI_UnmapMsgAtoW(UINT msg, DWORD_PTR dwParam1, DWORD_PTR dwParam2,
if (!result)
{
WideCharToMultiByte(CP_ACP, 0,
mci_sysinfoW->lpstrReturn, mci_sysinfoW->dwRetSize,
mci_sysinfoW->lpstrReturn, -1,
mci_sysinfoA->lpstrReturn, mci_sysinfoA->dwRetSize,
NULL, NULL);
}
@ -482,7 +482,7 @@ static void MCI_UnmapMsgAtoW(UINT msg, DWORD_PTR dwParam1, DWORD_PTR dwParam2,
if (!result)
{
WideCharToMultiByte(CP_ACP, 0,
mci_infoW->lpstrReturn, mci_infoW->dwRetSize,
mci_infoW->lpstrReturn, -1,
mci_infoA->lpstrReturn, mci_infoA->dwRetSize,
NULL, NULL);
}