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

Rémi Bernon rbernon at codeweavers.com
Thu Nov 19 02:53:51 CST 2020


On 11/19/20 9:37 AM, Dmitry Timoshkov wrote:
> 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 );
>> +        }
> 

Indeed I missed that while moving the code from the previous version. 
Thanks.
-- 
Rémi Bernon <rbernon at codeweavers.com>



More information about the wine-devel mailing list