[PATCH 1/5] d3dcompiler: Fix line info update.
Matteo Bruni
mbruni at codeweavers.com
Tue Jul 10 08:39:41 CDT 2012
---
dlls/d3dcompiler_43/hlsl.y | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/d3dcompiler_43/hlsl.y b/dlls/d3dcompiler_43/hlsl.y
index a3e5f6e..ea6bb12 100644
--- a/dlls/d3dcompiler_43/hlsl.y
+++ b/dlls/d3dcompiler_43/hlsl.y
@@ -307,7 +307,7 @@ hlsl_prog: /* empty */
preproc_directive: PRE_LINE STRING
{
TRACE("Updating line information to file %s, line %u\n", debugstr_a($2), $1);
- hlsl_ctx.line_no = $1 - 1;
+ hlsl_ctx.line_no = $1;
d3dcompiler_free(hlsl_ctx.source_file);
hlsl_ctx.source_file = $2;
}
--
1.7.8.6
More information about the wine-patches
mailing list