From 295106d1e954b877acc4d6c0f6aac370eec26be3 Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Thu, 12 Oct 2000 23:13:23 +0000 Subject: [PATCH] Fixed regression for debugger startup event creation. --- win32/except.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/win32/except.c b/win32/except.c index 684ef96c7ff..bf4565b58c8 100644 --- a/win32/except.c +++ b/win32/except.c @@ -147,14 +147,17 @@ DWORD WINAPI UnhandledExceptionFilter(PEXCEPTION_POINTERS epointers) HANDLE hEvent; PROCESS_INFORMATION info; STARTUPINFOA startup; - SECURITY_ATTRIBUTES attr; + OBJECT_ATTRIBUTES attr; - attr.nLength = sizeof(attr); - attr.lpSecurityDescriptor = NULL; - attr.bInheritHandle = TRUE; + attr.Length = sizeof(attr); + attr.RootDirectory = 0; + attr.Attributes = OBJ_INHERIT; + attr.ObjectName = NULL; + attr.SecurityDescriptor = NULL; + attr.SecurityQualityOfService = NULL; TRACE("Starting debugger (fmt=%s)\n", format); - NtCreateEvent( &hEvent, EVENT_ALL_ACCESS, NULL, FALSE, FALSE ); + NtCreateEvent( &hEvent, EVENT_ALL_ACCESS, &attr, FALSE, FALSE ); sprintf(buffer, format, GetCurrentProcessId(), hEvent); memset(&startup, 0, sizeof(startup)); startup.cb = sizeof(startup);