Bugfix: LOAD_DLL_DEBUG_EVENT lpImageName parameter was incorrect.
diff --git a/include/process.h b/include/process.h
index 53e1e9a..05ce076 100644
--- a/include/process.h
+++ b/include/process.h
@@ -169,7 +169,7 @@
extern DWORD DEBUG_SendExceptionEvent( EXCEPTION_RECORD *rec, BOOL first_chance );
extern DWORD DEBUG_SendCreateProcessEvent( HFILE file, HMODULE module, void *entry );
extern DWORD DEBUG_SendCreateThreadEvent( void *entry );
-extern DWORD DEBUG_SendLoadDLLEvent( HFILE file, HMODULE module, LPSTR name );
+extern DWORD DEBUG_SendLoadDLLEvent( HFILE file, HMODULE module, LPSTR *name );
extern DWORD DEBUG_SendUnloadDLLEvent( HMODULE module );
static inline PDB * WINE_UNUSED PROCESS_Current(void)
diff --git a/loader/module.c b/loader/module.c
index 2640eec..be6a994 100644
--- a/loader/module.c
+++ b/loader/module.c
@@ -1461,7 +1461,7 @@
LeaveCriticalSection(&PROCESS_Current()->crit_section);
if (PROCESS_Current()->flags & PDB32_DEBUGGED)
- DEBUG_SendLoadDLLEvent( -1 /*FIXME*/, pwm->module, pwm->modname );
+ DEBUG_SendLoadDLLEvent( -1 /*FIXME*/, pwm->module, &pwm->modname );
return pwm;
}
diff --git a/scheduler/debugger.c b/scheduler/debugger.c
index b09cf0c..5b39818 100644
--- a/scheduler/debugger.c
+++ b/scheduler/debugger.c
@@ -96,7 +96,7 @@
*
* Send an LOAD_DLL_DEBUG_EVENT event to the current process debugger.
*/
-DWORD DEBUG_SendLoadDLLEvent( HFILE file, HMODULE module, LPSTR name )
+DWORD DEBUG_SendLoadDLLEvent( HFILE file, HMODULE module, LPSTR *name )
{
struct debug_event_load_dll event;