On 11/19/20 9:37 AM, Dmitry Timoshkov wrote:
Rémi Bernon rbernon@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.