d2d1: Acquire lock before attempt to draw to device context.
commit72590048b26720b0bc1f2cd3e82578bce885de5c
authorBrendan McGrath <bmcgrath@codeweavers.com>
Tue, 21 Nov 2023 05:09:08 +0000 (21 16:09 +1100)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 29 Nov 2023 19:45:23 +0000 (29 20:45 +0100)
treebb2f7f6943d7e24fcc3952057683c9a3c2e086f2
parente6954d793bc5ad50c882dadf6e3c32922002e44c
d2d1: Acquire lock before attempt to draw to device context.

Ensures the Direct 2D lock is held before attempting to access Direct 2D
exclusive resources.

This fixes periodic crashes in PowerPoint 365
dlls/d2d1/d2d1_private.h
dlls/d2d1/device.c
dlls/d2d1/factory.c
dlls/d2d1/tests/d2d1.c