changeset 8277:db673d118d3f

some extra debugging
author alex
date Mon, 25 Nov 2002 16:29:30 +0000
parents f9c18cda60b2
children 1cbee32a0627
files loader/module.c
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/loader/module.c	Mon Nov 25 16:22:58 2002 +0000
+++ b/loader/module.c	Mon Nov 25 16:29:30 2002 +0000
@@ -55,7 +55,7 @@
 WINE_MODREF* MODULE_FindModule(LPCSTR m)
 {
     modref_list* list=local_wm;
-    TRACE("Module %s request\n", m);
+    TRACE("FindModule: Module %s request\n", m);
     if(list==NULL)
 	return NULL;
 //    while(strcmp(m, list->wm->filename))
@@ -104,16 +104,22 @@
 WINE_MODREF *MODULE32_LookupHMODULE(HMODULE m)
 {
     modref_list* list=local_wm;
-    TRACE("Module %X request\n", m);
+    TRACE("LookupHMODULE: Module %X request\n", m);
     if(list==NULL)
+    {
+	TRACE("LookupHMODULE failed\n");
 	return NULL;
+    }
     while(m!=list->wm->module)
     {
 //      printf("Checking list %X wm %X module %X\n",
 //	list, list->wm, list->wm->module);
 	list=list->prev;
 	if(list==NULL)
+	{
+	    TRACE("LookupHMODULE failed\n");
 	    return NULL;
+	}
     }
     TRACE("LookupHMODULE hit %p\n", list->wm);
     return list->wm;