Commit fd8576bf authored by Jörg Höhle's avatar Jörg Höhle Committed by Alexandre Julliard

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

parent 44527f57
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment