[PATCH 2/2 v2] ntdll: Zero debug registers after thread creation

Michael Müller michael at fds-team.de
Fri Apr 7 11:43:13 CDT 2017


Am 07.04.2017 um 17:52 schrieb Christian Inci:
>      DWORD tid = 0;
>      int request_pipe[2];
> +    CONTEXT ctx;
>      NTSTATUS status;
>  
>      [...]
>  
> +    ctx.ContextFlags = CONTEXT_DEBUG_REGISTERS;
> +    NtSetContextThread(handle, &ctx);
> +

You didn't initialize the register values and therefore set the debug
registers to random stack values. You should either initialize them
manually or memset the whole struct.




More information about the wine-devel mailing list