Eric Pouech : dbghelp: Ensure that local variables and parameter actually have a container.

Alexandre Julliard julliard at winehq.org
Tue Jun 8 10:08:22 CDT 2010


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

Author: Eric Pouech <eric.pouech at orange.fr>
Date:   Mon Jun  7 21:50:37 2010 +0200

dbghelp: Ensure that local variables and parameter actually have a container.

---

 dlls/dbghelp/symbol.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/dbghelp/symbol.c b/dlls/dbghelp/symbol.c
index 0607278..b399b66 100644
--- a/dlls/dbghelp/symbol.c
+++ b/dlls/dbghelp/symbol.c
@@ -476,7 +476,7 @@ struct symt_data* symt_add_func_local(struct module* module,
     locsym->hash_elt.name = pool_strdup(&module->pool, name);
     locsym->hash_elt.next = NULL;
     locsym->kind          = dt;
-    locsym->container     = &block->symt;
+    locsym->container     = block ? &block->symt : &func->symt;
     locsym->type          = type;
     locsym->u.var         = *loc;
     if (block)




More information about the wine-cvs mailing list