Rob Shearman : oleaut32: Move the debug logging of the variable type in SLTG_DoVars.
Alexandre Julliard
julliard at winehq.org
Wed Jul 30 08:36:04 CDT 2008
Module: wine
Branch: master
Commit: 0ed6ebfec1b271d5595212d14048cf291d3fd964
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0ed6ebfec1b271d5595212d14048cf291d3fd964
Author: Rob Shearman <robertshearman at gmail.com>
Date: Wed Jul 30 13:18:16 2008 +0100
oleaut32: Move the debug logging of the variable type in SLTG_DoVars.
Move it before loading of the constant data to allow better debugging
of problems during the processing of loading the constant data.
---
dlls/oleaut32/typelib.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c
index f190065..aaff551 100644
--- a/dlls/oleaut32/typelib.c
+++ b/dlls/oleaut32/typelib.c
@@ -3135,6 +3135,12 @@ static void SLTG_DoVars(char *pBlk, char *pFirstItem, ITypeInfoImpl *pTI, unsign
SLTG_DoElem(pType, pBlk,
&(*ppVarDesc)->vardesc.elemdescVar, ref_lookup);
+ if (TRACE_ON(typelib)) {
+ char buf[300];
+ dump_TypeDesc(&(*ppVarDesc)->vardesc.elemdescVar.tdesc, buf);
+ TRACE_(typelib)("elemdescVar: %s\n", buf);
+ }
+
if (pItem->flags & 0x40) {
TRACE_(typelib)("VAR_DISPATCH\n");
(*ppVarDesc)->vardesc.varkind = VAR_DISPATCH;
@@ -3186,12 +3192,6 @@ static void SLTG_DoVars(char *pBlk, char *pFirstItem, ITypeInfoImpl *pTI, unsign
if (pItem->flags & 0x80)
(*ppVarDesc)->vardesc.wVarFlags |= VARFLAG_FREADONLY;
- if (TRACE_ON(typelib)) {
- char buf[300];
- dump_TypeDesc(&(*ppVarDesc)->vardesc.elemdescVar.tdesc, buf);
- TRACE_(typelib)("elemdescVar: %s\n", buf);
- }
-
bstrPrevName = (*ppVarDesc)->Name;
ppVarDesc = &((*ppVarDesc)->next);
}
More information about the wine-cvs
mailing list