From 2d2e7c74bb6b73214ef025299c93c90900263919 Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Mon, 21 Jan 2008 22:05:33 +0100 Subject: [PATCH] msvcrt: symbol undecoration: Handling of void in template parameters' list. --- dlls/msvcrt/undname.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/dlls/msvcrt/undname.c b/dlls/msvcrt/undname.c index 95e5c8049f2..f78a7d89d17 100644 --- a/dlls/msvcrt/undname.c +++ b/dlls/msvcrt/undname.c @@ -362,12 +362,8 @@ static char* get_args(struct parsed_symbol* sym, struct array* pmt_ref, BOOL z_t } if (!demangle_datatype(sym, &ct, pmt_ref, TRUE)) return NULL; - /* 'void' terminates an argument list */ - if (!strcmp(ct.left, "void")) - { - if (!z_term && *sym->current == '@') sym->current++; - break; - } + /* 'void' terminates an argument list in a function */ + if (z_term && !strcmp(ct.left, "void")) break; str_array_push(sym, str_printf(sym, "%s%s", ct.left, ct.right), -1, &arg_collect); if (!strcmp(ct.left, "...")) break;