win32u: Use allocator mechanism to allocate DC attributes.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53645
This commit is contained in:
David Kahurani 2022-09-19 10:58:45 +03:00 committed by Alexandre Julliard
parent fa058bc3f0
commit 903c91fc60

View file

@ -543,7 +543,7 @@ INT WINAPI NtGdiSaveDC( HDC hdc )
release_dc_ptr( dc );
return 0;
}
if (!(newdc->attr = calloc( 1, sizeof(*newdc->attr) )))
if (!(newdc->attr = alloc_dc_attr() ))
{
free( newdc );
release_dc_ptr( dc );