mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-20 05:50:10 +01:00
Merge branch 'fixes' into 'master'
Win32: Fix init once condition See merge request cairo/cairo!628
This commit is contained in:
commit
abb37e2d02
1 changed files with 1 additions and 1 deletions
|
|
@ -147,7 +147,7 @@ _get_global_font_dc (void)
|
||||||
static DWORD hdc_tls_index;
|
static DWORD hdc_tls_index;
|
||||||
HDC hdc;
|
HDC hdc;
|
||||||
|
|
||||||
if (!_cairo_atomic_init_once_enter (&once)) {
|
if (_cairo_atomic_init_once_enter (&once)) {
|
||||||
hdc_tls_index = TlsAlloc ();
|
hdc_tls_index = TlsAlloc ();
|
||||||
assert (hdc_tls_index != TLS_OUT_OF_INDEXES);
|
assert (hdc_tls_index != TLS_OUT_OF_INDEXES);
|
||||||
_cairo_atomic_init_once_leave (&once);
|
_cairo_atomic_init_once_leave (&once);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue