msxml3: [janitorial] clean up initialization.
Michael Karcher
wine at mkarcher.dialup.fu-berlin.de
Sun Nov 2 05:46:41 CST 2008
This patch is just a style issue. It removes a second #ifdef/#endif
block and puts the initialization of the current indent character and
the default indent character for new threads next to each other. Feel
free to drop if you dislike it.
---
dlls/msxml3/main.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/dlls/msxml3/main.c b/dlls/msxml3/main.c
index b301ab7..8dbacbf 100644
--- a/dlls/msxml3/main.c
+++ b/dlls/msxml3/main.c
@@ -55,17 +55,14 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
#ifdef HAVE_LIBXML2
xmlInitParser();
- /* Set the default indent character to a single tab. */
+ /* Set the default indent character to a single tab,
+ for this thread and as default for new threads */
+ xmlTreeIndentString = "\t";
xmlThrDefTreeIndentString("\t");
#endif
#ifdef HAVE_XSLTINIT
xsltInit();
#endif
-
-#ifdef HAVE_LIBXML2
- /* Set the current ident to the default */
- xmlTreeIndentString = "\t";
-#endif
DisableThreadLibraryCalls(hInstDLL);
break;
case DLL_PROCESS_DETACH:
--
1.5.6.5
More information about the wine-patches
mailing list