d3dx9_36: Provide an empty error message in the stub D3DXCompileShader.

This commit is contained in:
Paul Chitescu 2010-07-28 13:50:46 +03:00 committed by Alexandre Julliard
parent fd66d61861
commit 8068d4ee22
1 changed files with 2 additions and 0 deletions

View File

@ -661,6 +661,8 @@ HRESULT WINAPI D3DXCompileShader(LPCSTR pSrcData,
TRACE("Shader source:\n");
TRACE("%s\n", debugstr_an(pSrcData, srcDataLen));
if (ppErrorMsgs)
D3DXCreateBuffer(1, ppErrorMsgs); /* zero fill used as string end */
return D3DERR_INVALIDCALL;
}