Commit 9087e5c5 authored by Alexandre Julliard's avatar Alexandre Julliard

server: Avoid crash on initialization of the thread creation debug event.

parent bf25837e
......@@ -129,7 +129,7 @@ static int fill_create_thread_event( struct debug_event *event, const void *arg
if (!(handle = alloc_handle( debugger, thread, THREAD_ALL_ACCESS, 0 ))) return 0;
event->data.info.create_thread.handle = handle;
event->data.info.create_thread.teb = thread->teb;
event->data.info.create_thread.start = *entry;
if (entry) event->data.info.create_thread.start = *entry;
return 1;
}
......@@ -389,6 +389,7 @@ static struct debug_event *alloc_debug_event( struct thread *thread, int code,
event->state = EVENT_QUEUED;
event->sender = (struct thread *)grab_object( thread );
event->debugger = (struct thread *)grab_object( debugger );
memset( &event->data, 0, sizeof(event->data) );
event->data.code = code;
if (!fill_debug_event[code-1]( event, arg ))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment