Jörg Höhle : winmm: Let WideCharToMultiByte search for NUL string terminator (Valgrind).
Alexandre Julliard
julliard at winehq.org
Mon Feb 21 10:56:58 CST 2011
Module: wine
Branch: master
Commit: fd8576bfdbaa6de55ba5bb5833f7f92173035a62
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fd8576bfdbaa6de55ba5bb5833f7f92173035a62
Author: Jörg Höhle <hoehle at users.sourceforge.net>
Date: Sun Feb 20 18:55:12 2011 +0100
winmm: Let WideCharToMultiByte search for NUL string terminator (Valgrind).
---
dlls/winmm/mci.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/winmm/mci.c b/dlls/winmm/mci.c
index 8a889d2..0fcccec 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);
}
More information about the wine-cvs
mailing list