=?UTF-8?Q?J=C3=B6rg=20H=C3=B6hle=20?=: winmm: Don' t log the uninitialised MCI output buffer in case of error.
Alexandre Julliard
julliard at winehq.org
Tue Mar 5 12:59:17 CST 2013
Module: wine
Branch: master
Commit: fe7a057a32177e22a201ac56f9b9eacc55ecd07d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fe7a057a32177e22a201ac56f9b9eacc55ecd07d
Author: Jörg Höhle <hoehle at users.sourceforge.net>
Date: Thu Feb 28 18:10:03 2013 +0100
winmm: Don't log the uninitialised MCI output buffer in case of error.
---
dlls/winmm/mci.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/winmm/mci.c b/dlls/winmm/mci.c
index 8f26c1e..5c91045 100644
--- a/dlls/winmm/mci.c
+++ b/dlls/winmm/mci.c
@@ -1579,11 +1579,12 @@ DWORD WINAPI mciSendStringW(LPCWSTR lpstrCommand, LPWSTR lpstrRet,
} else {
dwRet = MCI_SendCommand(wmd ? wmd->wDeviceID : uDevID, wMsg, dwFlags, (DWORD_PTR)&data);
}
- TRACE("=> 1/ %x (%s)\n", dwRet, debugstr_w(lpstrRet));
if (!LOWORD(dwRet)) {
+ TRACE("=> 1/ %x (%s)\n", dwRet, debugstr_w(lpstrRet));
dwRet = MCI_HandleReturnValues(dwRet, wmd, retType, &data.generic, lpstrRet, uRetLen);
TRACE("=> 2/ %x (%s)\n", dwRet, debugstr_w(lpstrRet));
- }
+ } else
+ TRACE("=> %x\n", dwRet);
errCleanUp:
if (auto_open) {
More information about the wine-cvs
mailing list