diff --git a/tools/widl/parser.y b/tools/widl/parser.y index f0340748c85..d4852d13203 100644 --- a/tools/widl/parser.y +++ b/tools/widl/parser.y @@ -588,10 +588,10 @@ uuid_string: $$ = parse_uuid($1); } ; -callconv: tCDECL { $$ = $1; } - | tFASTCALL { $$ = $1; } - | tPASCAL { $$ = $1; } - | tSTDCALL { $$ = $1; } +callconv: tCDECL { $$ = xstrdup("__cdecl"); } + | tFASTCALL { $$ = xstrdup("__fastcall"); } + | tPASCAL { $$ = xstrdup("__pascal"); } + | tSTDCALL { $$ = xstrdup("__stdcall"); } ; cases: { $$ = NULL; }