[PATCH] d3dcompiler: Add an assert checking for writemask sanity in debug_writemask().
Signed-off-by: Matteo Bruni <mbruni(a)codeweavers.com> --- dlls/d3dcompiler_43/utils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/d3dcompiler_43/utils.c b/dlls/d3dcompiler_43/utils.c index 5499b8ccdb1..b872e34d935 100644 --- a/dlls/d3dcompiler_43/utils.c +++ b/dlls/d3dcompiler_43/utils.c @@ -2142,6 +2142,8 @@ static const char *debug_writemask(DWORD writemask) char string[5]; unsigned int i = 0, pos = 0; + assert(!(writemask & ~BWRITERSP_WRITEMASK_ALL)); + while (writemask) { if (writemask & 1) -- 2.18.1
Hi, While running your changed tests on Windows, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check? Full results can be found at: https://testbot.winehq.org/JobDetails.pl?Key=45445 Your paranoid android. === debian9 (build log) === error: patch failed: dlls/d3dcompiler_43/utils.c:2142 Task: Patch failed to apply === debian9 (build log) === error: patch failed: dlls/d3dcompiler_43/utils.c:2142 Task: Patch failed to apply
participants (2)
-
Marvin -
Matteo Bruni