[PATCH 3/4] ntdll: Reimplement DbgPrint* using DBG_PRINTEXCEPTION_C.

Dmitry Timoshkov dmitry at baikal.ru
Thu Nov 19 02:37:29 CST 2020


Rémi Bernon <rbernon at codeweavers.com> wrote:

> +        __TRY
> +        {
> +            EXCEPTION_RECORD record;
> +            record.ExceptionCode    = DBG_PRINTEXCEPTION_C;
> +            record.ExceptionFlags   = 0;
> +            record.ExceptionRecord  = NULL;
> +            record.ExceptionAddress = RtlDestroyHeap;

Using RtlDestroyHeap address is most likely a mistake in general purpose API.

> +            record.NumberParameters = 2;
> +            record.ExceptionInformation[1] = (ULONG_PTR)buf;
> +            record.ExceptionInformation[0] = strlen( buf ) + 1;
> +            RtlRaiseException( &record );
> +        }

-- 
Dmitry.



More information about the wine-devel mailing list