From d240a46c3126c0d0c1e4358fec367aa210c737ed Mon Sep 17 00:00:00 2001 From: Jesse Natalie Date: Tue, 14 Sep 2021 09:46:26 -0700 Subject: [PATCH] Add missed D3DKMT_ALIGN64 for output QWord This fixes the registry wchar_t thunks for 32-bit code. --- src/d3dkmt-wsl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d3dkmt-wsl.cpp b/src/d3dkmt-wsl.cpp index b3dbb47..3fa895a 100644 --- a/src/d3dkmt-wsl.cpp +++ b/src/d3dkmt-wsl.cpp @@ -462,7 +462,7 @@ struct D3DDDI_QUERYREGISTRY_INFO_WCHAR16 D3DDDI_QUERYREGISTRY_STATUS Status; // Out union { DWORD OutputDword; // Out - UINT64 OutputQword; // Out + D3DKMT_ALIGN64 UINT64 OutputQword; // Out char16_t OutputString[1]; // Out. Dynamic array BYTE OutputBinary[1]; // Out. Dynamic array };