From fd8576bfdbaa6de55ba5bb5833f7f92173035a62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20H=C3=B6hle?= Date: Sun, 20 Feb 2011 18:55:12 +0100 Subject: [PATCH] winmm: Let WideCharToMultiByte search for NUL string terminator (Valgrind). --- dlls/winmm/mci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/winmm/mci.c b/dlls/winmm/mci.c index 8a889d27e92..0fcccec6d0b 100644 --- a/dlls/winmm/mci.c +++ b/dlls/winmm/mci.c @@ -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); }