From 0518c164ca3b0216eb172b4b5aa2af7386d16f9b Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Wed, 26 Oct 2005 10:09:05 +0000 Subject: [PATCH] Previous fix incorrectly removed all test for strings starting with '?', this is only valid when undname is called with the 'NO_ARGUMENTS' flags. --- dlls/msvcrt/undname.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/msvcrt/undname.c b/dlls/msvcrt/undname.c index 2b4fd1538de..378f4fd9d4b 100644 --- a/dlls/msvcrt/undname.c +++ b/dlls/msvcrt/undname.c @@ -979,6 +979,8 @@ static BOOL symbol_demangle(struct parsed_symbol* sym) goto done; } + /* MS mangled names always begin with '?' */ + if (*sym->current != '?') return FALSE; str_array_init(&sym->stack); sym->current++;