winmm: Let WideCharToMultiByte search for NUL string terminator (Valgrind).
This commit is contained in:
parent
44527f57b2
commit
fd8576bfdb
|
@ -464,7 +464,7 @@ static void MCI_UnmapMsgAtoW(UINT msg, DWORD_PTR dwParam1, DWORD_PTR dwParam2,
|
||||||
if (!result)
|
if (!result)
|
||||||
{
|
{
|
||||||
WideCharToMultiByte(CP_ACP, 0,
|
WideCharToMultiByte(CP_ACP, 0,
|
||||||
mci_sysinfoW->lpstrReturn, mci_sysinfoW->dwRetSize,
|
mci_sysinfoW->lpstrReturn, -1,
|
||||||
mci_sysinfoA->lpstrReturn, mci_sysinfoA->dwRetSize,
|
mci_sysinfoA->lpstrReturn, mci_sysinfoA->dwRetSize,
|
||||||
NULL, NULL);
|
NULL, NULL);
|
||||||
}
|
}
|
||||||
|
@ -482,7 +482,7 @@ static void MCI_UnmapMsgAtoW(UINT msg, DWORD_PTR dwParam1, DWORD_PTR dwParam2,
|
||||||
if (!result)
|
if (!result)
|
||||||
{
|
{
|
||||||
WideCharToMultiByte(CP_ACP, 0,
|
WideCharToMultiByte(CP_ACP, 0,
|
||||||
mci_infoW->lpstrReturn, mci_infoW->dwRetSize,
|
mci_infoW->lpstrReturn, -1,
|
||||||
mci_infoA->lpstrReturn, mci_infoA->dwRetSize,
|
mci_infoA->lpstrReturn, mci_infoA->dwRetSize,
|
||||||
NULL, NULL);
|
NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue