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

Alexandre Julliard julliard at winehq.org
Mon Sep 30 16:07:54 CDT 2013


Module: wine
Branch: master
Commit: e9358909f8bc940da4bd614dd68d5142b599f447
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e9358909f8bc940da4bd614dd68d5142b599f447

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Sun Sep 29 23:08:38 2013 +0200

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

---

 dlls/msvcrt/undname.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/msvcrt/undname.c b/dlls/msvcrt/undname.c
index ec974a0..057d40a 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)




More information about the wine-cvs mailing list