msvcrt: Restore a stack mark on error (Coverity).

This commit is contained in:
Marcus Meissner 2013-09-29 23:08:38 +02:00 committed by Alexandre Julliard
parent 8953e8d7ee
commit e9358909f8
1 changed files with 3 additions and 1 deletions

View File

@ -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)