winmm: Don't log the uninitialised MCI output buffer in case of error.
This commit is contained in:
parent
afd7dc5947
commit
fe7a057a32
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue