InitializeContext is useful for allocating a CONTEXT struct in an unaligned byte buffer. In this case, we already have a CONTEXT we want to initialize, and we only used this as a very roundabout way of zero initializing it.
Instead just memset the CONTEXT we have, and set the ContextFlags field manually.
This matches how it is done in NativeRegisterContextWindows_*.cpp.
This also makes LLDB run successfully in Wine (for a trivial tested case at least), as Wine haven't implemented the InitializeContext function.
As far as I understand what InitializeContext does, this seems a suitable replacement for how it's used here.
But if someone were to change the flag to include CONTEXT_XSTATE, then this would no longer work, because the xstate is variable length.
I would suggest: