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

This commit is contained in:
Jörg Höhle 2013-02-28 18:10:03 +01:00 committed by Alexandre Julliard
parent afd7dc5947
commit fe7a057a32
1 changed files with 3 additions and 2 deletions

View File

@ -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) {