Paul Chitescu : d3dx9_36: Provide an empty error message in the stub D3DXCompileShader.
Alexandre Julliard
julliard at winehq.org
Wed Jul 28 10:45:08 CDT 2010
Module: wine
Branch: master
Commit: 8068d4ee2280108aabd09c1f8b0cf8631774cb36
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8068d4ee2280108aabd09c1f8b0cf8631774cb36
Author: Paul Chitescu <paulc at voip.null.ro>
Date: Wed Jul 28 13:50:46 2010 +0300
d3dx9_36: Provide an empty error message in the stub D3DXCompileShader.
---
dlls/d3dx9_36/shader.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/d3dx9_36/shader.c b/dlls/d3dx9_36/shader.c
index 9677e0b..2c21773 100644
--- a/dlls/d3dx9_36/shader.c
+++ b/dlls/d3dx9_36/shader.c
@@ -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;
}
More information about the wine-cvs
mailing list