[PATCH 3/5] quartzdrv: Add initial debugging facilities to the
quartzdrv.
Pierre d'Herbemont
pdherbemont at free.fr
Wed Oct 25 08:39:46 CDT 2006
---
dlls/winequartz.drv/quartzdrv_main.c | 41
++++++++++++++++++++++++++++++----
1 files changed, 36 insertions(+), 5 deletions(-)
-------------- next part --------------
diff --git a/dlls/winequartz.drv/quartzdrv_main.c b/dlls/winequartz.drv/quartzdrv_main.c
index 6d764e4..52a04e6 100644
--- a/dlls/winequartz.drv/quartzdrv_main.c
+++ b/dlls/winequartz.drv/quartzdrv_main.c
@@ -26,8 +26,39 @@ #include "windef.h"
#include "winbase.h"
#include "winreg.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(quartzdrv);
+
+/***********************************************************************
+ * process initialisation routine
+ */
+static BOOL process_attach(void)
+{
+ TRACE("\n");
+ return TRUE;
+}
+
+
+/***********************************************************************
+ * thread termination routine
+ */
+static void thread_detach(void)
+{
+ TRACE("\n");
+}
+
+
+/***********************************************************************
+ * process termination routine
+ */
+static void process_detach(void)
+{
+ TRACE("\n");
+}
+
/***********************************************************************
- * QUARTZDRV initialisation routine
+ * Dll entry point
*/
BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
{
@@ -36,14 +67,14 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DW
switch(reason)
{
case DLL_PROCESS_ATTACH:
- /* Do attach */
+ ret = process_attach();
break;
case DLL_THREAD_DETACH:
- /* do thread detach */
+ thread_detach();
break;
case DLL_PROCESS_DETACH:
- /* do detach */
+ process_detach();
break;
}
return ret;
-}
\ No newline at end of file
+}
More information about the wine-patches
mailing list