Current code handles omitted deleteCount but assumes it to be zero in that case. Instead an omitted deleteCount means delete everything from `start`.
This prevents Adobe sign-in page from loading.
--
v2: jscript: fix Array.prototype.splice with omitted deleteCount in html mode
https://gitlab.winehq.org/wine/wine/-/merge_requests/3567
Mesa sometimes calls debug message callback from its own Unix native thread. Then it inevitably crashes in KeUserModeCallback().
So far I spotted only harmless notification messages called this way:
```
Shader Stats: SGPRS: 24 VGPRS: 12 Code Size: 124 LDS: 0 Scratch: 0 Max Waves: 10 Spilled SGPRs: 0 Spilled VGPRs: 0 PrivMem VGPRs: 0 Outputs: 1 PatchOutputs: 0 DivergentLoop: 0 InlineUniforms: 0 (PS, W64)
```
So I guess the best is just to ignore the callbacks called from native threads. The only other solution I see in the current architecture is to spin a PE thread from opengl and poll for debug messages, but that looks less than ideal and probably doesn't worth it.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/3553
> There's no special logic for NULL handles in the client side of NtTerminateProcess()
Actually there is some logic, and NULL handle has a special meaning in NtTerminateProcess. This would need tests to determine if the special meaning also applies to NtTerminateThread.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/3447#note_42184