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

winmm: Don't log the uninitialised MCI output buffer in case of error.

parent afd7dc59
...@@ -1579,11 +1579,12 @@ DWORD WINAPI mciSendStringW(LPCWSTR lpstrCommand, LPWSTR lpstrRet, ...@@ -1579,11 +1579,12 @@ DWORD WINAPI mciSendStringW(LPCWSTR lpstrCommand, LPWSTR lpstrRet,
} else { } else {
dwRet = MCI_SendCommand(wmd ? wmd->wDeviceID : uDevID, wMsg, dwFlags, (DWORD_PTR)&data); dwRet = MCI_SendCommand(wmd ? wmd->wDeviceID : uDevID, wMsg, dwFlags, (DWORD_PTR)&data);
} }
TRACE("=> 1/ %x (%s)\n", dwRet, debugstr_w(lpstrRet));
if (!LOWORD(dwRet)) { if (!LOWORD(dwRet)) {
TRACE("=> 1/ %x (%s)\n", dwRet, debugstr_w(lpstrRet));
dwRet = MCI_HandleReturnValues(dwRet, wmd, retType, &data.generic, lpstrRet, uRetLen); dwRet = MCI_HandleReturnValues(dwRet, wmd, retType, &data.generic, lpstrRet, uRetLen);
TRACE("=> 2/ %x (%s)\n", dwRet, debugstr_w(lpstrRet)); TRACE("=> 2/ %x (%s)\n", dwRet, debugstr_w(lpstrRet));
} } else
TRACE("=> %x\n", dwRet);
errCleanUp: errCleanUp:
if (auto_open) { if (auto_open) {
......
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