Skip to content
Snippets Groups Projects
Commit 09d78220 authored by Alexandre Julliard's avatar Alexandre Julliard
Browse files

Delay import of user32 to allow debugging crashes in user init code.

parent 6700eb31
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@
#include <string.h>
#include "debugger.h"
#include "ntddk.h"
#include "thread.h"
#include "file.h"
#include "wincon.h"
......@@ -727,7 +728,7 @@ static BOOL DEBUG_HandleDebugEvent(DEBUG_EVENT* de, LPDWORD cont)
buffer, (unsigned long)de->u.LoadDll.lpBaseOfDll,
de->u.LoadDll.dwDebugInfoFileOffset,
de->u.LoadDll.nDebugInfoSize);
CharUpper(buffer);
_strupr(buffer);
DEBUG_LoadModule32(buffer, de->u.LoadDll.hFile, (DWORD)de->u.LoadDll.lpBaseOfDll);
if (DBG_IVAR(BreakOnDllLoad)) {
DEBUG_Printf(DBG_CHN_MESG, "Stopping on DLL %s loading at %08lx\n",
......
......@@ -3,7 +3,7 @@ mode cuiexe
type win32
init DEBUG_main
import user32.dll
import -delay user32.dll
import advapi32.dll
import kernel32.dll
import ntdll.dll
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment