From e9358909f8bc940da4bd614dd68d5142b599f447 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sun, 29 Sep 2013 23:08:38 +0200 Subject: [PATCH] msvcrt: Restore a stack mark on error (Coverity). --- dlls/msvcrt/undname.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/msvcrt/undname.c b/dlls/msvcrt/undname.c index ec974a03c74..057d40a5e90 100644 --- a/dlls/msvcrt/undname.c +++ b/dlls/msvcrt/undname.c @@ -539,8 +539,10 @@ static char* get_template_name(struct parsed_symbol* sym) struct array array_pmt; sym->names.start = sym->names.num; - if (!(name = get_literal_string(sym))) + if (!(name = get_literal_string(sym))) { + sym->names.start = start_mark; return FALSE; + } str_array_init(&array_pmt); args = get_args(sym, &array_pmt, FALSE, '<', '>'); if (args != NULL)