Commit a17bb304 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

wow64win: Fix NtGdiDdDDICreateDevice thunk.

parent 50bbaf9d
......@@ -239,23 +239,20 @@ NTSTATUS WINAPI wow64_NtGdiDdDDICreateDevice( UINT *args )
UINT PatchLocationListSize;
} *desc32 = get_ptr( &args );
D3DKMT_CREATEDEVICE desc =
{
{ desc32->hAdapter },
desc32->Flags
};
D3DKMT_CREATEDEVICE desc;
NTSTATUS status;
if (!desc32) return STATUS_INVALID_PARAMETER;
desc.hAdapter = desc32->hAdapter;
desc.Flags = desc32->Flags;
desc.pCommandBuffer = UlongToPtr( desc32->pCommandBuffer );
desc.CommandBufferSize = desc32->CommandBufferSize;
desc.pAllocationList = UlongToPtr( desc32->pAllocationList );
desc.AllocationListSize = desc32->AllocationListSize;
desc.pPatchLocationList = UlongToPtr( desc32->pPatchLocationList );
desc.PatchLocationListSize = desc32->PatchLocationListSize;
if (!(status = NtGdiDdDDICreateDevice( &desc )))
{
desc32->hDevice = desc.hDevice;
desc32->pCommandBuffer = PtrToUlong( desc.pCommandBuffer );
desc32->CommandBufferSize = desc.CommandBufferSize;
desc32->pAllocationList = PtrToUlong( desc.pAllocationList );
desc32->AllocationListSize = desc.AllocationListSize;
desc32->pPatchLocationList = PtrToUlong( desc.pPatchLocationList );
desc32->PatchLocationListSize = desc.PatchLocationListSize;
}
return status;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment