diff options
Diffstat (limited to 'source4/build/pidl')
-rw-r--r-- | source4/build/pidl/parser.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/build/pidl/parser.pm b/source4/build/pidl/parser.pm index 579c577d3c..095c083514 100644 --- a/source4/build/pidl/parser.pm +++ b/source4/build/pidl/parser.pm @@ -444,7 +444,7 @@ sub ParseElementPullSwitch($$$$) pidl "\t\tif (_level != $switch_var) {\n"; } pidl "\t\t\treturn ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, \"Bad switch value %u in $e->{NAME}\");\t\t}\n"; - if ($switch =~ /r->/) { + if ($switch_var =~ /r->/) { pidl "else { $switch_var = _level; }\n"; } pidl "\t}\n"; |