[PATCH] d3dx9_36: Stop crash when displaying effect errors
Matteo Bruni
matteo.mystral at gmail.com
Wed Jun 1 16:18:01 CDT 2016
2016-06-01 12:18 GMT+02:00 Alistair Leslie-Hughes <leslie_alistair at hotmail.com>:
> Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
> ---
> dlls/d3dx9_36/effect.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/dlls/d3dx9_36/effect.c b/dlls/d3dx9_36/effect.c
> index 7772406..a72aa3a 100644
> --- a/dlls/d3dx9_36/effect.c
> +++ b/dlls/d3dx9_36/effect.c
> @@ -5969,7 +5969,7 @@ static HRESULT d3dx9_base_effect_init(struct d3dx9_base_effect *base,
> if (bytecode)
> ID3D10Blob_Release(bytecode);
> if (temp_errors)
> - TRACE("%s\n", (char *)ID3D10Blob_GetBufferPointer(temp_errors));
> + TRACE("%s\n", debugstr_a((char *)ID3D10Blob_GetBufferPointer(temp_errors)));
> if (errors)
> *errors = temp_errors;
> else if (temp_errors)
> --
> 2.8.1
What effect / application is crashing because of this and what are the errors?
More information about the wine-devel
mailing list